Permalink
Please sign in to comment.
Showing
with
26 additions
and 5 deletions.
- +2 −0 Gemfile
- +20 −0 Gemfile.lock
- +4 −2 config.ru
- +0 −3 main.rb
20
Gemfile.lock
@@ -0,0 +1,20 @@ | ||
+GEM | ||
+ specs: | ||
+ rack (1.3.6) | ||
+ rack-protection (1.1.4) | ||
+ rack | ||
+ sinatra (1.3.1) | ||
+ rack (~> 1.3, >= 1.3.4) | ||
+ rack-protection (~> 1.1, >= 1.1.2) | ||
+ tilt (~> 1.3, >= 1.3.3) | ||
+ sqlite3 (1.3.5) | ||
+ sqlite3-ruby (1.3.3) | ||
+ sqlite3 (>= 1.3.3) | ||
+ tilt (1.3.3) | ||
+ | ||
+PLATFORMS | ||
+ ruby | ||
+ | ||
+DEPENDENCIES | ||
+ sinatra | ||
+ sqlite3-ruby |
@@ -1,9 +1,11 @@ | ||
require 'rubygems' | ||
-require 'sinatra' | ||
+require 'bundler' | ||
+ | ||
+Bundler.require | ||
Sinatra::Application.set :views, File.join(File.dirname(__FILE__), 'views') | ||
Sinatra::Application.set :run, false | ||
Sinatra::Application.set :environment, ENV['RACK_ENV'] | ||
-require 'main' | ||
+require File.expand_path('../main', __FILE__) | ||
run Sinatra::Application |
0 comments on commit
8d12d4e