diff --git a/app.py b/app.py index d35fba1..c7e710d 100644 --- a/app.py +++ b/app.py @@ -121,6 +121,9 @@ def editPost(id): return render_template('edit.html', post=post_id) +with app.app_context(): + db.create_all() + if __name__ == "__main__": PORT = 5000 app.run(debug=True, port=PORT) diff --git a/requirements.txt b/requirements.txt index eea35d9..54b05d6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,3 +10,4 @@ SQLAlchemy==1.4.9 typing-extensions==3.7.4.3 Werkzeug==1.0.1 zipp==3.4.1 +gunicorn \ No newline at end of file