我正在尝试将flask-socketio项目部署到web上,但构建过程中没有注意到web dyno。我创建了一个名为Procfile的文件,没有扩展名。在它的procfile中
web:gunicorn manage:app我应该将manage更改为manage.py吗?为什么构建看起来像这样
-----> Python app detected
-----> Installing requirements with pip
-----> Discovering process types
-----> Compressing...
Done: 46.1M
-----> Launching...
Released v32
https://use-chats.herokuapp.com/ deployed to Heroku有一次,它说找到了一个网站动态,但现在没有了。
发布于 2019-05-28 08:21:00
我认为Procfile需要在<process_type>:和命令之间留一个空格才能运行:
web: gunicorn manage:app一个有用的资源:
https://stackoverflow.com/questions/56331354
复制相似问题