Permalink
Browse files

Alondra is only meant to be used in rails apps

  • Loading branch information...
1 parent 4b5c1db commit 4e589c9c614ddc193360bc3448710bd66c7e02ca @afcapel committed Nov 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/alondra
View
@@ -18,8 +18,8 @@ parser = OptionParser.new do |opts|
end
opts.on "-e", "--environment ENVIRONMENT",
- "The environment to run the Rack app on (default: development)" do |arg|
- ENV['RACK_ENV'] ||= arg
+ "The environment to run the Rails app on (default: development)" do |arg|
+ ENV['RAILS_ENV'] ||= arg
end
end
@@ -33,7 +33,7 @@ end
parser.parse(ARGV)
ENV['ALONDRA_SERVER'] ||= 'true'
-ENV['RACK_ENV'] ||= 'development'
+ENV['RAILS_ENV'] ||= 'development'
require './config/environment'
require 'alondra'

0 comments on commit 4e589c9

Please sign in to comment.