mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 01:55:41 -04:00
Fix the submodule
This commit is contained in:
5
.gitmodules
vendored
5
.gitmodules
vendored
@@ -1,4 +1,3 @@
|
|||||||
|
[submodule "app/assets/govuk_frontend_toolkit"]
|
||||||
[submodule "assets/govuk_frontend_toolkit"]
|
path = app/assets/govuk_frontend_toolkit
|
||||||
path = assets/govuk_frontend_toolkit
|
|
||||||
url = https://github.com/alphagov/govuk_frontend_toolkit.git
|
url = https://github.com/alphagov/govuk_frontend_toolkit.git
|
||||||
|
|||||||
@@ -29,4 +29,8 @@ Application to handle the admin functions of the notifications application.
|
|||||||
|
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
python app.py
|
./scripts/run_app.sh
|
||||||
|
|
||||||
|
url to test app: localhost:5000/helloworld
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
1
app/assets/govuk_frontend_toolkit
Submodule
1
app/assets/govuk_frontend_toolkit
Submodule
Submodule app/assets/govuk_frontend_toolkit added at 26b6a60d07
@@ -1,27 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
from flask.ext.script import Manager, Server
|
|
||||||
|
|
||||||
from app import create_app
|
|
||||||
|
|
||||||
application = create_app()
|
|
||||||
manager = Manager(application)
|
|
||||||
port = int(os.environ.get('PORT', 6012))
|
|
||||||
manager.add_command("runserver", Server(host='0.0.0.0', port=port))
|
|
||||||
|
|
||||||
# migrate = Migrate(application, db)
|
|
||||||
# manager.add_command('db', MigrateCommand)
|
|
||||||
|
|
||||||
|
|
||||||
@manager.command
|
|
||||||
def list_routes():
|
|
||||||
"""List URLs of all application routes."""
|
|
||||||
for rule in sorted(application.url_map.iter_rules(), key=lambda r: r.rule):
|
|
||||||
print("{:10} {}".format(", ".join(rule.methods - set(['OPTIONS', 'HEAD'])), rule.rule))
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
manager.run()
|
|
||||||
Reference in New Issue
Block a user