Files
weidian/run.py

15 lines
435 B
Python
Raw Normal View History

"""启动入口python run.py"""
from server.app import create_app, socketio
app = create_app()
if __name__ == '__main__':
import os
print("=" * 50)
print(" 微店抢购管理系统已启动")
print(" 访问 http://localhost:9000")
print("=" * 50)
debug = os.environ.get('FLASK_DEBUG', '1') == '1'
socketio.run(app, host='0.0.0.0', port=9000, debug=debug,
allow_unsafe_werkzeug=True)