[英]Rails Heroku starting Unicorn with Procfile
I am trying to run a Rails app on Heroku using Unicorn. 我正在尝试使用独角兽在Heroku上运行Rails应用程序。
I realized this morning that Heroku was starting Webrick instead of Unicorn. 我今天早上意识到Heroku正在创办Webrick,而不是Unicorn。
I believe the problem was that the "Procfile" shows uppercase P on my iMac, but when I send to GIT it ends up lowercase. 我相信问题是“ Procfile”在iMac上显示为大写P,但是当我发送到GIT时,它以小写结尾。 I fixed the case and sent it to Github.
我解决了这个问题,并将其发送给了Github。 I view on Github and the case is correct.
我认为在Github上是正确的。
Now my issue is I can't tell if Unicorn is running or not. 现在我的问题是我无法确定Unicorn是否正在运行。 How can I tell?
我怎么知道 What should I look for?
我应该找什么?
Thanks for the help! 谢谢您的帮助!
PS -- Also, how can I tell for sure that the Git repository on Heroku has the Uppercase "Procfile"? PS-另外,如何确定Heroku上的Git存储库具有大写的“ Procfile”?
Type heroku ps -a <your_app_name>
to see your running processes on Heroku. 键入
heroku ps -a <your_app_name>
您的应用名称heroku ps -a <your_app_name>
以查看您在Heroku上正在运行的进程。 If you want to see the files you have on remote, either clone from Heroku remote or run heroku run bash -a <your_app_name>
and then type ls
. 如果要查看远程文件,请从Heroku远程克隆或运行
heroku run bash -a <your_app_name>
,然后键入ls
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.