From fbd2cc3c34c2cef852adf1ef4625e7c88125b6f4 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 10 May 2021 06:57:00 -0700 Subject: [PATCH] update prod run script --- bin/prod | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/prod b/bin/prod index 57e16c4..4cec421 100755 --- a/bin/prod +++ b/bin/prod @@ -10,6 +10,8 @@ export FLASK_ENV=production mkdir -p $BASE +kill $(cat $BASE/gunicorn.pid) 2>&1 + gunicorn \ --bind 127.0.0.1:4000 "suchwow.app:app" \ --daemon \ @@ -17,4 +19,4 @@ gunicorn \ --pid $BASE/gunicorn.pid \ --reload -echo "Starting gunicorn" +echo "Starting gunicorn with pid $(cat $BASE/gunicorn.pid)"