Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
(PC-1625) Add postdeploy command
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Baudry authored and DanielBaudry committed Mar 11, 2019
1 parent c2ce130 commit 957d8bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
web: alembic upgrade head && python app.py
web: python app.py
postdeploy: alembic upgrade head
clock: python scripts/clock.py
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@
app.url_map.strict_slashes = False

with app.app_context():
install_models()
install_local_providers()
if IS_DEV:
install_models()
install_local_providers()
import utils.login_manager
import routes
install_admin_views(admin, db.session)
Expand Down

0 comments on commit 957d8bc

Please sign in to comment.