Permalink
Browse files

defaulting rails environment to match stage name

  • Loading branch information...
d018a502 committed Sep 6, 2012
1 parent 30a942c commit 042e7d9cb59c9dced0b0063eebebf316ba20fbef
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/capistrano/ext/multistage.rb
@@ -15,6 +15,7 @@
desc "Set the target stage to `#{name}'."
task(name) do
set :stage, name.to_sym
+ set :rails_env, name
load "#{location}/#{stage}"
end
end

0 comments on commit 042e7d9

Please sign in to comment.