Ubuntu 如何改变dyno流程?
我正在通过本教程()学习如何使用Heroku。这是我的问题: 1) 完成了部署应用程序的典型工作:Ubuntu 如何改变dyno流程?,ubuntu,heroku,Ubuntu,Heroku,我正在通过本教程()学习如何使用Heroku。这是我的问题: 1) 完成了部署应用程序的典型工作: $ heroku create $ git push heroku master $ heroku ps:scale web=1 $ heroku ps 过程如下: == web (1X): 'gunicorn hello:app' Procfile的文本为“web:gunicorn hello:app”。文件夹“svm”中的文件/目录: 2) 现在,我在同一个文件夹中创建了一个新的pytho
$ heroku create
$ git push heroku master
$ heroku ps:scale web=1
$ heroku ps
过程如下:
== web (1X): 'gunicorn hello:app'
Procfile的文本为“web:gunicorn hello:app”。文件夹“svm”中的文件/目录:
2) 现在,我在同一个文件夹中创建了一个新的python文件,比如svm.py。我已将procfile从“web:gunicorn hello:app”更改为“web:gunicorn svm:app”
但出于某种原因,我仍然得到:
=== web (1X): 'gunicorn hello:app'
我如何改变它以反映我现在想使用svm.py而不是hello.py这一事实?@Nitzan您的答案很好,而且,事实证明,我还必须用这里概述的细节补充我的heroku构建:在
git add
之后,您是否提交了git提交
?
$ git add .
$ git push heroku master
$ heroku ps:scale web=0
$ heroku ps:scale web=1
$ heroku ps
=== web (1X): 'gunicorn hello:app'