Difference between revisions of "Planet"

From CSLabsWiki
m (Modified paths to be correct and added additional categories)
m (removed category)
Line 30: Line 30:
[[Category:Web Service]]
[[Category:Web Service]]

Revision as of 14:31, 17 August 2009

Planet is a blog feed aggregator that is running on Web1. It will parse the given news feeds and then turn them into a single combined feed and web page.

Adding a New Blog

Once logged in to web1:

  • Open the file: /var/www/planet_html/examples/fancy/config.ini
  • Scroll to the bottom and add:
  name = John Doe
  # Uncomment the following line to give the user an image.  Images go in /var/www/planet_html/output/images
  # face = image_name.png
  • Save the file
  • Run the script

Important Files

All planet files are located in /var/www/planet_html/. These are ones of some notable importance:

  • examples/fancy/index.php.tmpl — Template used for main page generation.
  • examples/fancy/config.ini — Configuration file for planet.


When the /usr/local/bin/planet-update.sh script is executed, it just calls the planet.py python file. What will happen is planet will read the index.php.tmpl file and then create a normal browser-readable index file at /var/www/planet_html/output/index.php. Apache sees /var/www/planet_html/output as the root document folder for the website.

See Also