I am new to Heroku, and I want to set up my simple Node.js app through Heroku. I have tried following the Heroku docs for setting up node apps, and I have done everything it says to do. Unfortunately I have gotten stuck on the Foreman/Procfile section. I have created a Procfile like the tutorial says (saved as a .txt file), and have put it in the same directory as my source files. When I try to run Foreman, it says "Error: Procfile doesn't exist". It makes some sense, as Heroku doesn't know where my app directory is, but I want to understand how I can fix this. Thanks!
我是Heroku的新手,我想建立我的简单节点。通过Heroku js应用。我尝试过遵循Heroku文档来设置节点应用程序,我已经完成了它说要做的所有事情。不幸的是,我被工头/Procfile部分卡住了。我创建了一个Procfile,如教程所述(保存为.txt文件),并将其放在与源文件相同的目录中。当我试图运行福尔曼,它说“错误:Procfile不存在”。这是有道理的,因为Heroku不知道我的应用程序目录在哪里,但是我想知道如何修复它。谢谢!
1 个解决方案
#1
4
Do not save it as Procfile.txt
save it only as Procfile
(dot nothing)
不要将其保存为Procfile。txt将它保存为Procfile(无点)
#1
4
Do not save it as Procfile.txt
save it only as Procfile
(dot nothing)
不要将其保存为Procfile。txt将它保存为Procfile(无点)