Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Setup Application Server for Heroku

Prerequisites

Before setting up your application, ensure you have completed the following for Heroku.

Prerequisites for Heroku

Setup Your Application

Setup Heroku Application

Remote Configuration

Run the command to generate a script which will create and configure all Heroku apps. [project-name] string length is limited to 22 characters:

renuo create-heroku-app [project-name]

Please review the script before running it and execute only the commands you need and understand. In particular, you might need only one of the two environments if you decided to not use develop.

If you don't know what a command does: read the documentation and then execute it.

If you think that the script is outdated, please open a Pull Request on the renuo-cli project.

Setup Rails for Heroku

  1. Add a file called Procfile to your code root:
web: bundle exec puma -C config/puma.rb

This file is read by Heroku to start the web app and worker jobs.

  1. Add a file called .slugignore to your code root:
/spec
/.semaphore

This file allows you to mark files and folders to be excluded from the Heroku