Created
June 9, 2013 14:07
-
-
Save grigio/5743671 to your computer and use it in GitHub Desktop.
Minimal Sinatra app app.rb + config.ru + Gemfile for Openshift, test locally with "rackup"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
get '/' do | |
"Hello world" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LOAD_PATH << '.' | |
require 'rubygems' | |
require './app' | |
run Sinatra::Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem 'sinatra' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment