Commit c492b74d authored by Willard's avatar Willard

Use gevent for server, Manager for db migrations

parent bd3a8a20
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from canteeneo import app
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()
from gevent.wsgi import WSGIServer
from canteeneo import app
if __name__ == "__main__":
app.run()
\ No newline at end of file
http_server = WSGIServer(('0.0.0.0', 5000), app)
http_server.serve_forever()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment