Created
June 10, 2011 13:22
-
-
Save Fonsan/1018813 to your computer and use it in GitHub Desktop.
Failing 2.0pre
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
$: << File.expand_path('..', __FILE__) | |
require 'bundler/setup' | |
require 'highscore' | |
run App.new |
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 'http://rubygems.org' | |
gem 'sinatra' | |
gem 'erubis' | |
gem 'shotgun' |
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/base' | |
require 'erubis' | |
class App < Sinatra::Base | |
set :sessions, true | |
get '/' do | |
erubis :index | |
end | |
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
$ shotgun | |
== Shotgun/WEBrick on http://127.0.0.1:9393/ | |
[2011-06-10 15:07:44] INFO WEBrick 1.3.1 | |
[2011-06-10 15:07:44] INFO ruby 1.8.7 (yyyy-mm-dd) [x86_64-apple-darwin10.7.4] | |
[2011-06-10 15:07:44] INFO WEBrick::HTTPServer#start: pid=40289 port=9393 | |
127.0.0.1 - - [10/Jun/2011 15:08:06] "GET / HTTP/1.1" 200 - 0.0959 | |
Exit from thread detected. | |
^C^C^C^C^C^C^CKilled |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment