Updated dockerfile and run script to work with heroku deployment

pull/9/head
Ben Busby 4 years ago
parent de06b72c08
commit ea7ddce7b3

@ -5,6 +5,4 @@ COPY . .
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
CMD ["./run.sh"]

@ -115,4 +115,4 @@ def window():
if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0')
app.run(debug=True)

@ -1,6 +1,11 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
SCRIPT=`realpath $0`
SCRIPT_DIR=`dirname $SCRIPT`
if [[ -z "${PORT}" ]]; then
PORT=5000
fi
# Create config json if it doesn't exist
if [[ ! -f $SCRIPT_DIR/app/static/config.json ]]; then
@ -9,6 +14,4 @@ fi
pkill flask
# TODO: Set up the following for running over https
#--cert=./app/cert.pem --key=./app/key.pem
flask run --host="0.0.0.0"
flask run --host="0.0.0.0" --port=$PORT

Loading…
Cancel
Save