GitHub Repos

Deploying to heroku

Deploying direct to heroku (Ruby) without a CI tool

For Wordlessly, I didn’t even bother with Travis (or Circle CI). I just deployed direct to heroku, following these instructions:

  • Install everything you need to deploy a ruby app to Heroku
  • Install heroku command line tools
  • Login to heroku: heroku login
    • if you get bad request it might mean you forgot to navigate to the project folder first.
  • Create an app: heroku apps:create your-app-name
  • Run git push heroku master (note that even if your main git branch is named main, you still use master in this command)
    • !! But if you get the error “fatal: ‘heroku’ does not appear to be a git repository”, you need to run heroku git:remote -a your-app-name first (fill in your app name).
  • Ensure that at least one instance of the app is running: heroku ps:scale web=1 --app your-app-name
  • Open the website: heroku open --app your-app-name

Database stuff

  • For Ruby, PostgreSQL, Sinatra/Rails and heroku see here

Deploying to heroku (Ruby) with Circle CI

If I decide to switch to Circle CI in the future, I think this page for the Circle CI side of things and this page for the Heroku end will probably be useful.

Deploying to heroku (Ruby) with Travis

I documented the Heroku / Travis deployment steps in the tic-tac-toe readme here.

Misc Heroku Stuff


  • “No web processes running”. I got this error for ages with the tic-tac-toe-kata (the error was visible in the logs via heroku logs --tail --app tic-tac-toe-kata). The solution was to go to the resources section in heroku, then under Free Dynos, click the Edit button (pencil icon) over on the right, and turn the switch on to activate the web dyno.

Deploying Dockerised apps