我有一个Flask应用程序,我正试图通过此应用程序公开几个API。我正在使用Docker启动此应用,以下是启动该应用后的日志:
row
我能做些什么来看看这有什么问题吗?我该如何调试它以查看更多日志,从而使我知道后台发生了什么?有什么想法吗?
现在,当我点击API时,在Chrome中出现以下错误:
Joes-MacBook-Pro-78:my-flask-api joe$ docker run -p 5000:5000 --name my-flask-api my-flask-api
/usr/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:819: UserWarning: SQLALCHEMY_DATABASE_URI not set. Defaulting to "sqlite:///:memory:".
'SQLALCHEMY_DATABASE_URI not set. Defaulting to '
/usr/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:839: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
[2018-11-29 16:54:58,812] [werkzeug] [INFO] * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
[2018-11-29 16:54:58,813] [werkzeug] [INFO] * Restarting with stat
/usr/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:819: UserWarning: SQLALCHEMY_DATABASE_URI not set. Defaulting to "sqlite:///:memory:".
'SQLALCHEMY_DATABASE_URI not set. Defaulting to '
/usr/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:839: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
[2018-11-29 16:54:59,069] [werkzeug] [WARNING] * Debugger is active!
[2018-11-29 16:54:59,070] [werkzeug] [INFO] * Debugger PIN: 123-456-789