Size: 510
Comment:
|
← Revision 8 as of 2019-05-02 22:41:23 ⇥
Size: 1107
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
Line 3: | Line 5: |
To create the virtual environment (usually necessary after an upgrade of the machine), do the following. The -i is important, because without it, the $HOME will be that of the calling user, which will give problems with pip (which keeps its cache under $HOME). Also this can't be done with tmux because after the call to tmux, the $HOME will again be that of the calling user. {{{ ssh filicudi sudo -i -u haussmae tmux cd csd-ie-2.0/csd-ie-webapp rm -rf venv virtualenv venv source venv/bin/activate pip install -r requirements }}} Once the virtual environment is there, the following works |
|
Line 6: | Line 23: |
cd /home/haussmae/csd-ie-2.0/csd-ie-webapp | cd csd-ie-2.0/csd-ie-webapp |
Line 16: | Line 33: |
source ./venv2/bin/activate | source ./venv/bin/activate |
Line 21: | Line 38: |
source ./venv2/bin/activate | source ./venv/bin/activate |
CSD-IE
Demo
To create the virtual environment (usually necessary after an upgrade of the machine), do the following. The -i is important, because without it, the $HOME will be that of the calling user, which will give problems with pip (which keeps its cache under $HOME). Also this can't be done with tmux because after the call to tmux, the $HOME will again be that of the calling user.
ssh filicudi sudo -i -u haussmae tmux cd csd-ie-2.0/csd-ie-webapp rm -rf venv virtualenv venv source venv/bin/activate pip install -r requirements
Once the virtual environment is there, the following works
ssh filicudi sudo -u haussmae tmux cd csd-ie-2.0/csd-ie-webapp
Then create three tmux windows (twice Ctrl+B+C) and run the following:
ant run
source ./venv/bin/activate python csd_ie_api.py
source ./venv/bin/activate python csd_ie_server.py
The demo should then be live under http://filicudi.informatik.uni-freiburg.de:6543/
The API should be live under http://filicudi.informatik.uni-freiburg.de:6543/api