1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

defaulting rails environment to match stage name

This commit is contained in:
d018a502 2012-09-06 07:14:56 -07:00
parent 30a942c745
commit 042e7d9cb5

View file

@ -15,6 +15,7 @@ Capistrano::Configuration.instance.load do
desc "Set the target stage to `#{name}'."
task(name) do
set :stage, name.to_sym
set :rails_env, name
load "#{location}/#{stage}"
end
end