Install Ruby

Install Git

Sign Up at Heroku

Install Heroku cli

Open windows cmd

Check installed

$ ruby -v
$ git -v
$ heroku version

Download project base files

Install bundle (ruby library)

$ gem install bundle

Use bundle to install other gems

$ bundle install

Login heroku

$ heroku login
Enter your Heroku credentials:
Password: ************
Logged in as

Create app on heroku

$ git init
$ git add .
$ git commit -m "my first sinatra"

Create app on heroku

$ heroku apps:create app-name

or just

$ heroku apps:create

Push your code to heroku

$ git push heroku master
remote: Verifying deploy... done.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you will see this if it is success

Open your website!

$ heroku open

This will open:
Change url to:
F5 F5 F5 F5…

Modify your website

Open app.rb with text editor(notepad, notepad++, sublime, atom, visual studio code, etc.)

Change this

get '/' do
  'Hellow world!'


get '/' do


$ git add app.rb
$ git commit -m "do some change"
$ git push heroku master
$ heroku open


You do all done!