Skip to content

Commit

Permalink
Once more
Browse files Browse the repository at this point in the history
  • Loading branch information
sondregronas committed Jul 26, 2024
1 parent c2d0681 commit 0d91639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion BookingSystem/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def debug_login() -> flask.Response:
return app


app = create_app()

if __name__ == '__main__':
start_routine()
create_app().run(host='0.0.0.0')
app.run(host='0.0.0.0')
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ run_app() {
cp -r /overrides/* /app;
fi

gunicorn --bind 0.0.0.0:5000 --preload routine_tasks:start_routine() -t 60 app:create_app() &
gunicorn --bind 0.0.0.0:5000 -t 60 --preload routine_tasks:start_routine() app:app &
PID=$!
wait $PID
}
Expand Down

0 comments on commit 0d91639

Please sign in to comment.