Minimal development server Use SITE_PATH env variable to point to optional local site add thin as development dependency
arnaud sellenet
committed Apr 14, 2014
commit eeac12b51b54d9e6cfc6b03b17d4ce2dd951f0db
Showing 3
changed files with
10 additions
and 1 deletions
Gemfile
+2
-0
| @@ | @@ -6,3 +6,5 @@ group :test do |
| gem 'pry' | |
| gem 'coveralls', require: false | |
| end | |
| + | |
| + | gem 'thin' |
| \ No newline at end of file | |
Gemfile.lock
+7
-0
| @@ | @@ -42,11 +42,13 @@ GEM |
| thor | |
| crack (0.4.2) | |
| safe_yaml (~> 1.0.0) | |
| + | daemons (1.1.9) |
| diff-lcs (1.2.5) | |
| docile (1.1.3) | |
| dragonfly (1.0.4) | |
| multi_json (~> 1.0) | |
| rack | |
| + | eventmachine (1.0.3) |
| execjs (2.0.2) | |
| fssm (0.2.10) | |
| haml (4.0.5) | |
| @@ | @@ -140,6 +142,10 @@ GEM |
| stringex (2.0.11) | |
| term-ansicolor (1.3.0) | |
| tins (~> 1.0) | |
| + | thin (1.6.2) |
| + | daemons (>= 1.0.9) |
| + | eventmachine (>= 1.0.0) |
| + | rack (>= 1.0.0) |
| thor (0.18.1) | |
| tilt (1.4.1) | |
| tins (1.0.0) | |
| @@ | @@ -164,5 +170,6 @@ DEPENDENCIES |
| rack-test | |
| rake (~> 10.1) | |
| rspec (~> 2.14) | |
| + | thin |
| vcr | |
| webmock | |
example/server.rb
+1
-1
| @@ | @@ -8,7 +8,7 @@ require File.join(DIR, '../lib/steam') |
| require File.join(DIR, '../lib/locomotive/steam/server') | |
| require File.join(DIR, '../lib/locomotive/steam/initializers') | |
| - | path = File.join(DIR, '../spec/fixtures/default') |
| + | path = ENV['SITE_PATH'] || File.join(DIR, '../spec/fixtures/default') |
| Locomotive::Steam::Logger.setup(path, false) | |
| reader = Locomotive::Mounter::Reader::FileSystem.instance | |
| reader.run!(path: path) | |