Also host on :80 in prod
Somewhat forcefully puts users on https.
This commit is contained in:
parent
d8a4fa9bba
commit
2807c72740
2
start
2
start
|
@ -15,7 +15,7 @@ fi
|
||||||
|
|
||||||
if [[ "$1" == "prod" ]]; then
|
if [[ "$1" == "prod" ]]; then
|
||||||
echo "Starting gunicorn production server..."
|
echo "Starting gunicorn production server..."
|
||||||
gunicorn -b 0.0.0.0:443 "undercover:create_app()"
|
gunicorn -b 0.0.0.0:80 -b 0.0.0.0:443 "undercover:create_app()"
|
||||||
else
|
else
|
||||||
echo "Starting local dev server..."
|
echo "Starting local dev server..."
|
||||||
export FLASK_ENV=development
|
export FLASK_ENV=development
|
||||||
|
|
Loading…
Reference in New Issue