Mar*_*are 5 ruby windows ruby-on-rails heroku procfile
在尝试部署我的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
Run Code Online (Sandbox Code Playgroud)
我尝试按照" 未使用默认Web服务器检测到Procfile "中的建议,但这没有帮助.
在评论中给出的信息之外,您有此错误,因为在您的评论中Procfile,您有:
web: bundle exec rails server -p $PORT
Run Code Online (Sandbox Code Playgroud)
因此webrick将使用默认值.
要删除此警告,您应使用另一个Web服务器,如Unicorn,Thin或Puma.
Heroku现在主张使用Puma(参见Changelog).
要开始使用Puma和Heroku,您可以在Heroku网站上关注使用Puma Web Server部署Rails应用程序.
| 归档时间: |
|
| 查看次数: |
5683 次 |
| 最近记录: |