【发布时间】:2015-07-17 02:00:23
【问题描述】:
我在尝试部署我的 Ruby on Rails 应用程序时收到此错误。这是我的命令行中的错误:
###### WARNING:
remote: No Procfile detected, using the default web server (webrick)
remote: https://devcenter.heroku.com/articles/ruby-default-web-server
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for Ruby -> console, rake, web, worker
remote:
remote: -----> Compressing... done, 29.5MB
remote: -----> Launching... done, v21
remote: https://agile-sea-1900.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/agile-sea-1900.git
e5d3ad8..975d5eb master -> master
我尝试遵循“No Procfile detected, using the default web server”[archive.org] 中的建议 - 捆绑 thin gem 并创建包含以下内容的 Procfile:
web: bundle exec thin start -p $PORT
但这并没有帮助。
【问题讨论】:
-
我没有看到任何错误,只是警告。
heroku logs显示什么? devcenter.heroku.com/articles/logging#log-retrieval -
你
Procfile的内容是什么? -
确保 P 在 Procfile 中是大写
-
我的 Procfile 包含 - 'web: bundle exec rails server -p $PORT'
-
所以如果你使用
Thin,你需要在你的Procfile中用thin替换rails server
标签: ruby-on-rails ruby windows heroku procfile