No Procfile detected using default webserver (webrick)
I am trying to deploy my Ruby on Rails application. Here is the error on my command line:
###### 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
I tried following the advice in No Procfile Detected Using Default Web Server ", but it didn't help.
+3
source to share
2 answers
At the top of the information given in the comments you have this error because in yours Procfile
you have:
web: bundle exec rails server -p $PORT
Thus, the default will be used webrick
.
To remove this warning, you must use another web server such as Unicorn, Thin, or Puma.
Heroku now advocates using Puma (see Changelog ).
And to get started with Puma and Heroku, you can head over to the Deploy Rails Applications with Puma Web Server article on the Heroku website.
+6
source to share