Before you begin

Make sure you’ve:

  • Created a Heroku account

  • Download and install the Heroku Command Line tools

  • Once installed, open a command line window and type heroku login. Use your email and password for your heroku account to log in.

  • Install the GitHub desktop application on your computer. During the install, also install the command line tools for Git. If you forgot or need to do this after the install: follow these instructions for OSX and [Windows]

Get an account

We’ll use Heroku for deploying our apps to a live public webserver where you can let any one interact with your Sinatra services.

First, sign up at: https://www.heroku.com. It’s free, with the option of adding on services.

To Install the command line tools

Install the Heroku Command Line Interface (CLI)

You will use the CLI to manage and scale your applications, to provision add-ons, to view the logs of your application as it runs on Heroku, as well as to help run your application locally.

While you can do all of these things from the Dashboard, it’s much quicker and easier to work from the command line!

Once installed, you can use the heroku command from your command shell.

When you do this for the first time, it’ll ask you to log in using the email address and password you used when creating your Heroku account:

$ heroku login
Enter your Heroku credentials.
Email: hello@example.com
Password: 
...

You’ll only need to do this once and it’s needed to connect your projects to the remote web servers you’ll create with Heroku


Full credit: Much of this is adapted from the Heroku guide, but set up to show you how to transition a local project into a heroku deployable project.

×

Subscribe

The latest tutorials sent straight to your inbox.