- Use git to clone the repository.
- Check if Rails 5.0 or higher is installed on your system by running
rails -v
in your Terminal. If you need to install Rails, follow this guide. Once Rails is installed, rungem install bundler
, thenbundle install
. - Install the Heroku Command Line Interface (CLI) by following these instructions.
- Make sure you are in the directory that contains your Rails app, then create an app on Heroku by running
heroku create
. - Deploy your code by running
git push heroku master
. - Create the database on the server from the schema file. To do this, run
heroku run rake db:schema:load
.
You can view your deployments (as a list of releases) by running heroku releases
.