Line 3: |
Line 3: |
| == Description == | | == Description == |
| | | |
− | Short descrition of machine purpose
| + | This VM is build as a Webservice to create and store "textbooks". |
| + | Technically this service is build on top of django and the [[http://download.booki.cc/ booki]] - plugins/extensions. |
| | | |
| == OS == | | == OS == |
| | | |
− | Distro and version.
| + | [[Machine/template-maverick|Ubuntu 10.10]] |
| + | |
| | | |
| == Services == | | == Services == |
Line 19: |
Line 21: |
| == Location == | | == Location == |
| | | |
− | [[Machine/treehouse|treehouse]] | + | [[Machine/housetree|housetree]] |
| | | |
| == Admins == | | == Admins == |
Line 26: |
Line 28: |
| * [[User:dogi|Stefan Unterhauser]] | | * [[User:dogi|Stefan Unterhauser]] |
| | | |
− | == Notes == | + | == ToDo == |
− | This VM is build as a Webservice to create and store "textbooks".
| |
− | Technialy this service is build on top of django and the [[http://download.booki.cc/ booki]] - plugins/extensions.
| |
− | | |
− | == 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 ... | | * 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 = | + | == known problems == |
| + | ===django=== |
| from time to time django has to be restarted ... grrrrr. | | from time to time django has to be restarted ... grrrrr. |
− | ssh mokurai@book.treehouse.su | + | ssh mokurai@booki.treehouse.su |
| sudo -s | | sudo -s |
− | screen -R | + | screen -x |
| [CTRL-C] #to terminate the blocked/slow/running django | | [CTRL-C] #to terminate the blocked/slow/running django |
− | django-admin runserver 0.0.0.0:80 | + | django-admin runserver 0.0.0.0:80 #start again |
− | [CTRL-A followed by D] | + | [CTRL-A followed by D] # detach screen session without terminating ... |
| + | |
| + | ===objavi=== |
| + | Books in booki are translated to PDF and other output formats by objavi. This instance of objavi says that it is generating the output document, runs through a progress bar, and then fails to make any further progress. |
| + | |
| + | Default booki installations point to an objavi instance maintained by FLOSS Manuals, so that it is not necessary to install it locally. |
| + | |
| + | == 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" |