blob: c3ad9faa89de502b82ed461c6298f1ef123c646c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/python
import sys
from app import app, db
try:
cmd = sys.argv[1]
except IndexError:
cmd = None
if cmd == "create":
db.create_all()
elif cmd == "drop":
db.drop_all()
else:
app.run()
|