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:
Email: xxxxxx@xxxxx.com
Password: ************
Logged in as xxxxxx@xxxxx.com

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: https://app-name.herokuapp.com/
Change url to: https://app-name.herokuapp.com/time
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!'
end

to

get '/' do
  '粗乃丸!'
end

then…

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

Congratulation!

You do all done!