我的wsgi-file wsgi.py
文件:
from webapp import create_app
from webapp.cli import register
env = os.environ.get('WEBAPP_ENV', 'dev')
app = create_app('config.%sConfig' % env.capitalize())
register(app)
heroku-uwsgi.ini
文件:
http-socket = :$(PORT)
die-on-term = true
wsgi-file = wsgi.py
callable = app
processes = 4
threads = 2
我认为问题出在我的应用程序的路径上,但是故意使用绝对路径和相对路径,我总是会出错。
uwsgi.ini
文件:
chdir =/home/dash/src/flask/flask_blog
wsgi-file=/flask_blog/wsgi.py
socket = /tmp/uwsgi.sock
chown-socket = nginx:nginx
chmod-socket = 664
master = true
processes = 30
vacuum = true
max-requests = 5000
harakiri = 30
buffer-size=32768
在生产配置文件中,我正在使用nginx,uwsgi,sqlite3
带有测试工头启动网络的输出控制台