Heroku rails Procfile

heroku, ruby-on-rails

Solution

You’re not supposed to run `web: bundle exec rails server thin -p $PORT -e $RACK_ENV` as a command, rather you create a new file called `Procfile` with that as its contents.

Either create the file and paste it in using your editor, or just do:

echo "web: bundle exec rails server thin -p \$PORT -e \$RACK_ENV" > Procfile

Problem

I am very new to Heroku. I uploaded my Rails app to Heroku and would like to run it with Thin instead of Webrick. Following Heroku’s guide I am supposed to use `web: bundle exec rails server thin -p $PORT -e $RACK_ENV` to create the procfile. However I always get the response `web:: command not found`. What am I missing?

Original source