Skip to content

Commit

Permalink
Fix issue padrino#633
Browse files Browse the repository at this point in the history
  • Loading branch information
DAddYE committed Aug 23, 2011
1 parent 635fdbf commit 5d631d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions padrino-core/lib/padrino-core/cli/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ def prepare(task)
help(task.to_s)
raise SystemExit
end
ENV["PADRINO_ENV"] ||= options.environment.to_s
ENV["RACK_ENV"] = ENV["PADRINO_ENV"] # Also set this for middleware
ENV["PADRINO_ENV"] ||= ENV["RACK_ENV"] ||= options.environment.to_s
chdir(options.chdir)
unless File.exist?('config/boot.rb')
puts "=> Could not find boot file in: #{options.chdir}/config/boot.rb !!!"
Expand Down

0 comments on commit 5d631d4

Please sign in to comment.