mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
15 lines
415 B
Bash
Executable File
15 lines
415 B
Bash
Executable File
#!/bin/sh
|
|
case $1 in
|
|
master)
|
|
cd /opt/crawlab/frontend \
|
|
&& npm run build:prod \
|
|
&& service nginx start
|
|
python $WORK_DIR/crawlab/flower.py >> /opt/crawlab/flower.log 2>&1 &
|
|
python $WORK_DIR/crawlab/worker.py >> /opt/crawlab/worker.log 2>&1 &
|
|
python $WORK_DIR/crawlab/app.py
|
|
;;
|
|
worker)
|
|
python $WORK_DIR/crawlab/app.py >> /opt/crawlab/app.log 2>&1 &
|
|
python $WORK_DIR/crawlab/worker.py
|
|
;;
|
|
esac |