Can somebody help me regarding on how can i solve my problem on Heroku. Im new to Heroku. This warning always appear. WARNING:No Procfile detected, using the default web server (webrick). Im using Rails 4. Thank in advance
The error itself is pretty self-explanatory. No Procfile
is detected, so in your root directory create a file called Procfile
.
As you stated in your comment you are using the Unicorn
server so inside the Procfile
put this code.
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
I am assuming you created a unicorn.rb file
push to github, push to heroku and see if that works.
The Procfile
holds the command for starting the server, and any options you need to pass to that. Your app was crashing because the command to start the server was not there at all.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments