Update startup scripts
This commit is contained in:
parent
24fbb8b397
commit
32aba1e75d
@ -1,4 +0,0 @@
|
|||||||
source /home/pyzebra/miniconda3/etc/profile.d/conda.sh
|
|
||||||
|
|
||||||
conda activate test
|
|
||||||
python ~/pyzebra/pyzebra/app/cli.py --allow-websocket-origin=pyzebra.psi.ch:5006 --spind-path=/home/pyzebra/spind
|
|
@ -1,10 +1,10 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=pyzebra-test web server (runs on port 5006)
|
Description=pyzebra-test web server
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=pyzebra
|
User=pyzebra
|
||||||
ExecStart=/bin/bash /usr/local/sbin/pyzebra-test-start.sh
|
ExecStart=/bin/bash /usr/local/sbin/pyzebra-test.sh
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
4
scripts/pyzebra-test.sh
Normal file
4
scripts/pyzebra-test.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
source /opt/miniconda3/etc/profile.d/conda.sh
|
||||||
|
|
||||||
|
conda activate test
|
||||||
|
python /opt/pyzebra/pyzebra/app/cli.py --port=5010 --allow-websocket-origin=pyzebra.psi.ch:5010 --spind-path=/opt/spind
|
@ -3,7 +3,7 @@ Description=pyzebra web server
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/bin/bash /usr/local/sbin/pyzebra-start.sh
|
ExecStart=/bin/bash /usr/local/sbin/pyzebra.sh
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
source /home/pyzebra/miniconda3/etc/profile.d/conda.sh
|
source /opt/miniconda3/etc/profile.d/conda.sh
|
||||||
|
|
||||||
conda activate prod
|
conda activate prod
|
||||||
pyzebra --port=80 --allow-websocket-origin=pyzebra.psi.ch:80 --spind-path=/home/pyzebra/spind
|
pyzebra --port=80 --allow-websocket-origin=pyzebra.psi.ch:80 --spind-path=/opt/spind
|
Loading…
x
Reference in New Issue
Block a user