This website requires JavaScript.
Explore
Help
Sign In
darkhelm
/
notifications-admin
Watch
1
Star
0
Fork
0
You've already forked notifications-admin
mirror of
https://github.com/GSA/notifications-admin.git
synced
2026-02-10 13:23:40 -05:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
bc4e99ce2faafb2cf4ac489b302e2cb1df9ca90d
notifications-admin
/
scripts
/
run_app.sh
5 lines
53 B
Bash
Raw
Normal View
History
Unescape
Escape
Start to create views
2015-11-20 16:22:44 +00:00
#!/bin/bash
Clean up config a bit. Get values for config from environment. Removed some old redundant config.
2016-03-23 14:09:07 +00:00
source
environment.sh
remove flask-script flask-script has been deprecated by the internal flask.cli module, but making this carries a few changes with it * you should add FLASK_APP=application.py and FLASK_DEBUG=1 to your environment.sh. * instead of using `python app.py runserver`, now you must run `flask run -p 6012`. The -p command is important - the port must be set before the config is loaded, so that it can live reload nicely. (https://github.com/pallets/flask/issues/2113#issuecomment-268014481) * find available commands by just running `flask`. * run them using flask. eg `flask list_routes` * define new tasks by giving them the decorator `@app.cli.command('task-name')`. Task name isn't needed if it's just the same as the function name. Alternatively, if app isn't available in the current scope, you can invoke the decorator directly, as seen in app/commands.py
2017-11-06 13:07:21 +00:00
flask run -p
6012
Reference in New Issue
Copy Permalink