Skip to content

just a POC to kick the wheels of deploying Sinatra apps on Heroku

Notifications You must be signed in to change notification settings

samkeen/heroku_sinatra_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

# Just a POC

## docs
http://devcenter.heroku.com/articles/rack

    vi hello.rb

require 'sinatra'

get '/' do
  "Hello World!"
end

    vi config.ru

require './hello'
run Sinatra::Application

    vi Gemfile

source 'http://rubygems.org'
gem 'sinatra'


    git init
    git add .
    git commit -m 'first commit'
    # push to your new git repo you created on github
    git remote add origin {YOUR GITHUB URI}
    # push to github
    $ git push -u origin master 

Now the repo is in github, time to push to heroku

(if you don't have your key set up on heroku (heroku keys:add)

    $ heroku create
    Creating furious-dawn-6326.... done, stack is bamboo-mri-1.9.2
    http://furious-dawn-6326.heroku.com/ | git@heroku.com:furious-dawn-6326.git
    Git remote heroku added

Now push to Heroku

    $ git push heroku master

    $ heroku open http://{YOUR APP SUBDOMAIN}.heroku.com

About

just a POC to kick the wheels of deploying Sinatra apps on Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages