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: -----> Discovering process types
remote:        Procfile declares types -> (none)
remote:        Default types for Ruby  -> console, rake, web, worker
remote: -----> Compressing... done, 29.5MB
remote: -----> Launching... done, v21
remote: deployed to Heroku
remote: Verifying deploy... done.
   e5d3ad8..975d5eb  master -> master


I tried following the advice in No Procfile Detected Using Default Web Server ", but it didn't help.


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.



In my case, I ignored the Procfile in .gitignore, due to other online manual pages. At that time, they instructed to hide the files declaring environment variables containing information about the mail account. So check your .gitignore file and delete if you see a Procfile in it.



All Articles