Skip to content

cuny-nytech/sinatra-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra "Hello World" Example

  1. Install locally

    # get the code
    git clone https://github.com/cuny-nytech/sinatra-example.git
    # go into the project folder
    cd sinatra-example
    # install the dependencies listed in the Gemfile
    bundle
  2. Run locally

    # start Rack (which runs config.ru)
    bundle exec rackup
    # open the page
    open http://localhost:9292/hi
  3. Install Heroku Toolbelt

  4. Deploy to Heroku

    # create the app on Heroku
    heroku create
    # send latest code to Heroku
    git push -u heroku master
    # get "Web URL" of Heroku app
    heroku apps:info
    # open the page, using hostname printed by previous command
    open http://SOMETHING.herokuapp.com/hi

See the example at http://cuny-sinatra-example.herokuapp.com/hi.

About

"Hello world" example in Sinatra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages