Size: 451
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. |
|
Line 5: | Line 10: |
sudo su haussmae | 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 |
Line 8: | Line 25: |
Then run the following in three separate windows: | Then create three tmux windows (twice Ctrl+B+C) and run the following: |
Line 13: | Line 31: |
Line 14: | Line 33: |
../venv2/bin/activate | source ./venv/bin/activate |
Line 17: | Line 36: |
Line 18: | Line 38: |
../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