Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 heroku和开发的procfile_Ruby On Rails 3_Heroku_Foreman_Procfile - Fatal编程技术网

Ruby on rails 3 heroku和开发的procfile

Ruby on rails 3 heroku和开发的procfile,ruby-on-rails-3,heroku,foreman,procfile,Ruby On Rails 3,Heroku,Foreman,Procfile,我对Procfile在本地机器和heroku开发中的用法有点困惑 为了在本地机器中启动rails,我需要 web: bundle exec rails server -p $PORT worker: bundle exec rake jobs:work 当我使用foreman 但是希罗库在竞选 bundle exec thin start -R config.ru -e production -p 48378 我应该在Procfile中写些什么,这样我的本地机器和heroku就可以了?您

我对
Procfile
在本地机器和heroku开发中的用法有点困惑

为了在本地机器中启动rails,我需要

web: bundle exec rails server -p $PORT

worker:  bundle exec rake jobs:work
当我使用
foreman

但是希罗库在竞选

bundle exec thin start -R config.ru -e production -p 48378

我应该在
Procfile
中写些什么,这样我的本地机器和heroku就可以了?

您是否在本地使用不区分大小写的文件系统(Windows或Mac)?尝试将
procfile
重命名为
procfile
。在这种情况下,procfile的内容更为重要。Heroku正在运行,这表明它没有看到您的
procfile
。如果它名为
procfile
,那么Heroku(在区分大小写的Linux上)将看不到它。。。并确保gem文件中有
gem'thin'