From 7be48e3f4ac4b26583eea80e8568498b55435471 Mon Sep 17 00:00:00 2001 From: PLUJA <64632615+pluja@users.noreply.github.com> Date: Fri, 4 Sep 2020 16:26:44 +0200 Subject: [PATCH] Update SELF-HOSTING.md --- SELF-HOSTING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SELF-HOSTING.md b/SELF-HOSTING.md index baa0356..2a43c9f 100644 --- a/SELF-HOSTING.md +++ b/SELF-HOSTING.md @@ -62,7 +62,8 @@ mysql> quit; If your set up was correct, you should now be able to run: -`flask db upgrade` +`flask db init` +`flask db migrate` #### Step 3: Setting up Gunicorn and Supervisor When you run the server with flask run, you are using a web server that comes with Flask. This server is very useful during development, but it isn't a good choice to use for a production server because it wasn't built with performance and robustness in mind. Instead of the Flask development server, for this deployment I decided to use gunicorn, which is also a pure Python web server, but unlike Flask's, it is a robust production server that is used by a lot of people, while at the same time it is very easy to use. [ref](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xvii-deployment-on-linux)