Difference between revisions of "Machine/booki"
< Machine
Jump to navigation
Jump to search
m (moved Machine/treehouse/booki to Machine/booki) |
|||
Line 39: | Line 39: | ||
django-admin runserver 0.0.0.0:80 #start again | django-admin runserver 0.0.0.0:80 #start again | ||
[CTRL-A followed by D] # detach screen session without terminating ... | [CTRL-A followed by D] # detach screen session without terminating ... | ||
+ | |||
+ | == variables which have to be set == | ||
+ | declare -x PYTHONPATH=":/var/www/:/var/www/booki/lib/:/srv/booki/lib:/var/www/:/var/www/booki/lib/:/srv/booki/lib:/srv/booki/lib/booki:/var/www/:/var/www/mybooki/lib/:/srv/booki/lib:/var/www/:/var/www/mybooki/lib/:/srv/booki/lib" | ||
+ | root@booki:/var/www/mybooki# export|grep SETTINGS | ||
+ | declare -x DJANGO_SETTINGS_MODULE="mybooki.settings" |
Revision as of 17:10, 2 February 2012
Description
This VM is build as a Webservice to create and store "textbooks". Technially this service is build on top of django and the [booki] - plugins/extensions.
OS
Ubuntu 10.10
Services
Hardware
- KVM Virtual Machine
Location
Admins
ToDo
- use apache for http delivery ... right now this service is provided by the django /python command "django-admin runserver 0.0.0.0:80" which has to be excuted in a screen session ...
known problems
from time to time django has to be restarted ... grrrrr.
ssh mokurai@book.treehouse.su sudo -s screen -R [CTRL-C] #to terminate the blocked/slow/running django django-admin runserver 0.0.0.0:80 #start again [CTRL-A followed by D] # detach screen session without terminating ...
variables which have to be set
declare -x PYTHONPATH=":/var/www/:/var/www/booki/lib/:/srv/booki/lib:/var/www/:/var/www/booki/lib/:/srv/booki/lib:/srv/booki/lib/booki:/var/www/:/var/www/mybooki/lib/:/srv/booki/lib:/var/www/:/var/www/mybooki/lib/:/srv/booki/lib" root@booki:/var/www/mybooki# export|grep SETTINGS declare -x DJANGO_SETTINGS_MODULE="mybooki.settings"