feat: Initial commit with full deployment architecture and scripts
This commit is contained in:
commit
abb3efe114
96 files changed
+16789
No files matched your search
@@ -0,0 +1,17 @@
|
||||
|
||||
"""
|
||||
backend/run.py
|
||||
开发环境启动脚本
|
||||
"""
|
||||
from app import create_app, db
|
||||
from app.models import User, Agent
|
||||
|
||||
app = create_app('development')
|
||||
|
||||
@app.shell_context_processor
|
||||
def make_shell_context():
|
||||
return {'db': db, 'User': User, 'Agent': Agent}
|
||||
|
||||
if __name__ == '__main__':
|
||||
# MacOS ControlCenter uses port 5000, so we use 5002
|
||||
app.run(host='0.0.0.0', port=5002)
|
||||
Reference in new issue
Block a user