-
Notifications
You must be signed in to change notification settings - Fork 25
/
manage.py
executable file
·28 lines (22 loc) · 972 Bytes
/
manage.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/home/daniel/.virtualenvs/sf/bin/python
from frontend import app, db
from flask_script import Manager, Server
from flask_migrate import Migrate, MigrateCommand
# -----------------------------------------------------------------------------
# SETUP DATABASE MIGRATION
# -----------------------------------------------------------------------------
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
# -----------------------------------------------------------------------------
# SETUP DEVELOPMENT SERVER
# -----------------------------------------------------------------------------
DEBUG = True
app.debug = DEBUG
app.testing = DEBUG
manager.add_command("runserver", Server(host="0.0.0.0", port=5055))
# -----------------------------------------------------------------------------
# RUN MANAGER
# -----------------------------------------------------------------------------
if __name__ == '__main__':
manager.run()