mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #712 from kirs/patch-6
Set stage before requiring config/deploy.rb
This commit is contained in:
commit
b9bb2cf923
1 changed files with 2 additions and 1 deletions
|
@ -8,11 +8,12 @@ end
|
|||
|
||||
stages.each do |stage|
|
||||
Rake::Task.define_task(stage) do
|
||||
set(:stage, stage.to_sym)
|
||||
|
||||
invoke 'load:defaults'
|
||||
load 'config/deploy.rb'
|
||||
load "config/deploy/#{stage}.rb"
|
||||
load "capistrano/#{fetch(:scm)}.rb"
|
||||
set(:stage, stage.to_sym)
|
||||
I18n.locale = fetch(:locale, :en)
|
||||
configure_backend
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue