run.md 664 Bytes
Newer Older
gijs's avatar
gijs committed
1 2 3
% To run the API
screen -S api

gijs's avatar
gijs committed
4
cd /home/pi/Documents/osp.workshop.metahoguet/plotter
gijs's avatar
gijs committed
5
. /home/pi/venvs/metahoguet/bin/activate
alexandre's avatar
alexandre committed
6 7
gunicorn --bind 0.0.0.0:5555 --workers 3 wsgi:app
sudo service nginx reload
gijs's avatar
gijs committed
8 9 10 11 12 13

% !!! ctr+a d


% To run the plotter
screen -S plotter
gijs's avatar
gijs committed
14
cd /home/pi/Documents/osp.workshop.metahoguet/plotter
gijs's avatar
gijs committed
15 16 17 18 19 20 21 22 23
. /home/pi/venvs/metahoguet/bin/activate
python runner.py

% !!! ctr+a d


% To run the mpost downloaded
screen -S mpost

gijs's avatar
gijs committed
24
cd /home/pi/Documents/osp.workshop.metahoguet/pad
gijs's avatar
gijs committed
25 26 27 28 29 30 31 32 33 34 35 36 37
bash exportMeta.sh

% !!! ctr+a d


screen -r api
python wsgi.py
% !!! ctr+a d

screen -r plotter
python runner.py
% !!! ctr+a d

gijs's avatar
gijs committed
38
screen -r mpost
gijs's avatar
gijs committed
39 40
bash exportMeta.sh
% !!! ctr+a d