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
57f0bcc880
commit
fbd2cc3c34
1 changed files with 3 additions and 1 deletions
4
bin/prod
4
bin/prod
|
@ -10,6 +10,8 @@ export FLASK_ENV=production
|
||||||
|
|
||||||
mkdir -p $BASE
|
mkdir -p $BASE
|
||||||
|
|
||||||
|
kill $(cat $BASE/gunicorn.pid) 2>&1
|
||||||
|
|
||||||
gunicorn \
|
gunicorn \
|
||||||
--bind 127.0.0.1:4000 "suchwow.app:app" \
|
--bind 127.0.0.1:4000 "suchwow.app:app" \
|
||||||
--daemon \
|
--daemon \
|
||||||
|
@ -17,4 +19,4 @@ gunicorn \
|
||||||
--pid $BASE/gunicorn.pid \
|
--pid $BASE/gunicorn.pid \
|
||||||
--reload
|
--reload
|
||||||
|
|
||||||
echo "Starting gunicorn"
|
echo "Starting gunicorn with pid $(cat $BASE/gunicorn.pid)"
|
||||||
|
|
Loading…
Reference in a new issue