mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 12:59:04 +00:00

Changed turbogears to use packages installed via easy_install... in the virtualenv rather than system-wide packages. Moved the bulk of the upload log code into the helperlib. Made the map tiler look for existing copies of a map tile to avoid doing redundant work. Made the map tiler kill stalled wesnoth clients (they typically stall because an uploaded map uses custom tiles). Updated URL handling to correctly send out a 404 for nonexistent URLs instead of a 501. Updated killview backend to support multiple datatables instead of one hardcoded one (now supports GAMES,GAMES_AI,GAMES_MP, any other GAMES* table). Updated URL references in the html templates to stats.wesnoth.org instead of wesnoth.org/wesstats. Added a title to graph view pages. Increased size of pie graphs.
#Here is a numbered list of what you need to do to deploy you Turbogears2 or Pylons application. Follow 1 through 6. #1. Create production.ini configuration file if its not there already. Example: cp development.ini production.ini #Edit production.ini and delete the port settings or make sure its set to 80. #2. Change or check the apache settings file. #Edit /usr/local/turbogears/wesstats/apache/wesstats and make sure it has the necessary apache configurations you need. #Copy {wesstats} apache config file to apache folder. Example: cp /usr/local/turbogears/wesstats/apache/wesstats /etc/apache2/sites-available/wesstats #3.Check if permissions are the same as other apache sites usually (root:root) ls -l /etc/apache2/sites-available/ #You shoud see #total 16 #-rw-r--r-- 1 root root 950 2008-08-08 13:06 default #-rw-r--r-- 1 root root 7366 2008-08-08 13:06 default-ssl #-rw-r--r-- 1 root root 1077 2008-11-08 12:38 wesstats #4.Enable your site. a2ensite wesstats #5. Check if your project has proper permissions, usually apache user. (Example: www-data:www-data on Debian). ls -l /usr/local/turbogears/wesstats/apache/ #total 16 #-rw-r--r-- 1 www-data www-data 1077 2008-11-26 22:35 wesstats #-rw-r--r-- 1 www-data www-data 2319 2008-11-26 23:25 wesstats.wsgi #-rw-r--r-- 1 www-data www-data 594 2008-11-26 22:35 README.txt #-rw-r--r-- 1 www-data www-data 538 2008-11-26 22:35 test.wsgi #6.Reload apache /etc/init.d/apache2 reload #You are done. Your application should be working. Check the access.log, warn.log, and error.log in /var/log/apache to see if there are any errors.