Fix the submodule

This commit is contained in:
Rebecca Law
2015-11-23 16:18:33 +00:00
parent 11d79951f3
commit ecbf641eef
4 changed files with 8 additions and 31 deletions

View File

@@ -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()