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:
parent
30a942c745
commit
042e7d9cb5
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue