Size: 815
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 -i -u haussmae tmux echo $HOME # must be /home/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 10: | Line 25: |
Note: without the -i the $HOME will be that of the calling user, which will give problems with pip (which keeps its cache under $HOME). Problem: before tmux, the $HOME is correct now, but after calling tmux, it's the home of the calling user again, which I do not understand. |
|
Line 20: | Line 33: |
source ./venv2/bin/activate | source ./venv/bin/activate |
Line 25: | 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