Heroku gunicorn不工作(bash:gunicorn:命令未找到)
发布时间:2020-12-15 19:05:45 所属栏目:安全 来源:网络整理
导读:我成功安装了gunicorn: remote: ----- Removing .DS_Store filesremote: ----- Python app detectedremote: ----- Installing dependencies with pipremote: Collecting gunicorn==19.0.0 (from -r requirements.txt (line 1))remote: Downloading gunicorn
我成功安装了gunicorn:
remote: -----> Removing .DS_Store files remote: -----> Python app detected remote: -----> Installing dependencies with pip remote: Collecting gunicorn==19.0.0 (from -r requirements.txt (line 1)) remote: Downloading gunicorn-19.0.0.tar.gz (382kB) remote: Installing collected packages: gunicorn remote: Running setup.py install for gunicorn remote: Successfully installed gunicorn-19.0.0 我的Procfile: web: gunicorn myapp:app --log-file=- 但部署时应用程序崩溃: bash: gunicorn: command not found 我尝试添加heroku python buildpack,但没有运气。如果我回滚到先前的提交(其中requirements.txt和Procile都未更改),它的工作原理如下: heroku/web.1: Starting process with command `gunicorn myapp:app --log-file=-` app/web.1: 2015-10-08 17:04:18 [3] [INFO] Listening at: http://0.0.0.0:51854 (3)
确保gunicorn在您的requirements.txt中
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |