You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pablo Conesa edited this page Mar 10, 2016
·
25 revisions
Scipion web requires you to have Scipion desktop running in the server. For that you will need to install Scipion. After this you should have Python, Django and all the modules required to run Scipion web.
Django scripts need write permission in $SCIPION_HOME
Matplotlib
Matplotlib also needs write permission (by default, to ~/.matplotlib)
Matplotlib also needs to deafult to Agg backend:
from scipion folder:
cp software/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/mpl-data/matplotlibrc ~/.matplotlib/
vi ~/.matplotlib/matplotlibrc
Set --> backend : agg
save it
Run the webserver
The simplest way to test your installation is to run Scipion in webserver mode:
(Note: the script starts the web server listening to 0.0.0.0, so it
might be accessible from other computers too)
The recommended procedure is to setup a replica of the production
environment on your development machine. Actually it takes little work,
and you will be doing the test in the same environment as production.
To generate the database that Django will use (used when uploading a file), run
./scipion webserver syncdb
Other useful commands
To list all available Django commands,
./scipion webserver help
You can run any Django command if you type it after webserver: useful for collectstatic content.