mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Fix default configuration load order
Ensure application specific configuration is loaded after `load:defaults`. This closes #640 and https://github.com/capistrano/bundler/issues/5
This commit is contained in:
parent
f85eb30979
commit
f040f12353
1 changed files with 1 additions and 1 deletions
|
@ -3,13 +3,13 @@ include Capistrano::DSL
|
|||
namespace :load do
|
||||
task :defaults do
|
||||
load 'capistrano/defaults.rb'
|
||||
load 'config/deploy.rb'
|
||||
end
|
||||
end
|
||||
|
||||
stages.each do |stage|
|
||||
Rake::Task.define_task(stage) do
|
||||
invoke 'load:defaults'
|
||||
load 'config/deploy.rb'
|
||||
load "config/deploy/#{stage}.rb"
|
||||
load "capistrano/#{fetch(:scm)}.rb"
|
||||
set(:stage, stage.to_sym)
|
||||
|
|
Loading…
Reference in a new issue