Skip to content

Instantly share code, notes, and snippets.

@ojiry
Created June 17, 2012 17:06
Show Gist options
  • Select an option

  • Save ojiry/2945072 to your computer and use it in GitHub Desktop.

Select an option

Save ojiry/2945072 to your computer and use it in GitHub Desktop.

Revisions

  1. ojiry revised this gist Jun 17, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion app.rb
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,5 @@
    require 'sinatra'

    get '/' do
    'Hello world!'
    'Hello world!'
    end
  2. ojiry created this gist Jun 17, 2012.
    2 changes: 2 additions & 0 deletions Gemfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    source :rubygems
    gem 'sinatra'
    6 changes: 6 additions & 0 deletions app.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    require 'rubygems'
    require 'sinatra'

    get '/' do
    'Hello world!'
    end
    2 changes: 2 additions & 0 deletions config.ru
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    require './app'
    run Sinatra::Application