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