mirror of
https://git.wownero.com/lza_menace/suchwow.git
synced 2024-08-15 01:03:19 +00:00
update prod run script
This commit is contained in:
parent
017a230cc1
commit
8a2c66d3b6
1 changed files with 11 additions and 11 deletions
6
bin/prod
6
bin/prod
|
@ -10,15 +10,15 @@ export FLASK_ENV=production
|
||||||
|
|
||||||
mkdir -p $BASE
|
mkdir -p $BASE
|
||||||
|
|
||||||
kill $(cat $BASE/gunicorn.pid) 2>&1
|
pgrep -F $BASE/gunicorn.pid
|
||||||
|
|
||||||
|
if [[ $? != 0 ]]; then
|
||||||
gunicorn \
|
gunicorn \
|
||||||
--bind 127.0.0.1:4000 "suchwow.app:app" \
|
--bind 127.0.0.1:4000 "suchwow.app:app" \
|
||||||
--daemon \
|
--daemon \
|
||||||
--log-file $BASE/gunicorn.log \
|
--log-file $BASE/gunicorn.log \
|
||||||
--pid $BASE/gunicorn.pid \
|
--pid $BASE/gunicorn.pid \
|
||||||
--reload
|
--reload
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
echo "Starting gunicorn with pid $(cat $BASE/gunicorn.pid)"
|
echo "Starting gunicorn with pid $(cat $BASE/gunicorn.pid)"
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue