Starting the oTree server
Please only run the server only on the port (80xx) given to you! Otherwise you might interfere with other people's experiments.
To start the oTree server first connect to the VCEE server and then change to the oTree folder, e.g.:
cd otree
If you have not used the "push to the server" method when uploading then you have to replace oTree with the folder you have chosen.
If you are starting the server for the first time, you need to install otree (and, if you are using them, other packages) first. It is recommended to install the same version of otree as you have written your experiment in. For example, to install otree version 3.4.0 use:
pip3 install -U otree==3.4.0
Then start the by calling:
otree runprodserver $OTREE_PORT
To close the server, you just have to press Ctrl - C.
Closing the Terminal/Powershell window will also stop the server!
Starting the server in the background
To start the server in the background and leave it on even after logging off you have to run:
nohup otree runprodserver $OTREE_PORT &
in your oTree folder.
The easiest way to stop this server is to kill the process:
killall prodserver
It is perfectly fine to let the server run for a while both for testing purposes and during the time in which you are running the experiment in the lab.
However, if there is no experiment scheduled we might run maintenance on the server.
So, in case you need your oTree server to be online and stable (i.e., without reboots) please come talk to us beforehand.