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
Post a Comment