CORS Origins: ['http://localhost:5173', 'http://127.0.0.1:5173', 'http://10.110.39.145:5173']
Database indexes created successfully
Starting LaTeX Speed Trainer API server...
Environment: production
Debug mode: True
Server: http://127.0.0.1:5000
* Serving Flask app 'app'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
* Restarting with stat
CORS Origins: ['http://localhost:5173', 'http://127.0.0.1:5173', 'http://10.110.39.145:5173']
Database indexes created successfully
Starting LaTeX Speed Trainer API server...
Environment: production
Debug mode: True
Server: http://127.0.0.1:5000
* Debugger is active!
* Debugger PIN: 308-814-655
部署于wsl上,前后端均未见任何报错,但是题目为空。
后端运行python3 run.py
数据库正常连接,需要我手动请求一次/api/reset-db,然后再注册才有题目显示,这是正常的吗?
.env中为FLASK_ENV=production