Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
run migrations on startup of data-store
Browse files Browse the repository at this point in the history
  • Loading branch information
gidsg committed May 21, 2024
1 parent d8bef98 commit 77c7321
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: gunicorn wsgi:app -c run/gunicorn/run.py --workers=3
web: gunicorn wsgi:app -c run/gunicorn/run.py --workers=1
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ services:
environment:
- FLASK_ENV=development
- DATABASE_URL=postgresql://postgres:password@database:5432/postgres
entrypoint: launcher
command: flask db upgrade && gunicorn wsgi:app -c run/gunicorn/run.py --workers=1
depends_on:
- database
- localstack
Expand Down

0 comments on commit 77c7321

Please sign in to comment.