We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a304f6d commit f015d14Copy full SHA for f015d14
.env.dev
@@ -2,3 +2,6 @@ SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://postgres:postgres@db/flashlearn
2
SQL_HOST=db
3
SQL_PORT=5432
4
DATABASE=postgres
5
+POSTGRES_USER=postgres
6
+POSTGRES_PASSWORD=postgres
7
+POSTGRES_DB=flashlearn
.gitignore
@@ -10,3 +10,4 @@ htmlcov
10
.pytest_cache
11
postgres-data
12
.env.prod
13
+.env.prod.db
entrypoint.sh
@@ -12,6 +12,6 @@ then
fi
14
python -m flask db upgrade
15
-python -m flask run --host=0.0.0.0
+gunicorn --bind 0.0.0.0:5000 wsgi:app
16
17
exec "$@"
wsgi.py
@@ -0,0 +1,6 @@
1
+from flashlearn import create_app
+
+app = create_app()
+if __name__ == "__main__":
+ app.run()
0 commit comments