How to stop flask from running my server when creating migrations? -


whenever run command flask db migrate or flask db upgrade using flask-migrate framework, starts running application on localhost, , have press ctrl+c quit before allowing server stop , generate migration. how can avoid this?

another question have whenever run, first run in debug mode , after hitting ctrl+c quit again run without debug mode on, on different port. how limit running former? thanks.

somewhere within application have app.run() call. flask runs application itself, call 1 causing db commands run server before carrying out command, , causes server run twice when flask run. if find , remove line think fine.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -