le1t0-capistrano 2.5.18.007 → 2.5.18.008
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/VERSION +1 -1
- data/lib/capistrano/recipes/deploy.rb +17 -4
- metadata +2 -2
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.18.
|
1
|
+
2.5.18.008
|
@@ -154,6 +154,10 @@ end
|
|
154
154
|
# of them with `cap -T'.
|
155
155
|
# =========================================================================
|
156
156
|
|
157
|
+
before 'deploy:migrations', 'deploy:migrations_init'
|
158
|
+
before 'deploy:cold', 'deploy:cold_init'
|
159
|
+
before 'deploy:cold:migrations', 'deploy:cold_migrations_init'
|
160
|
+
|
157
161
|
namespace :deploy do
|
158
162
|
desc <<-DESC
|
159
163
|
Deploys your project. This calls both `update' and `restart'. Note that \
|
@@ -402,7 +406,6 @@ namespace :deploy do
|
|
402
406
|
task :migrations do
|
403
407
|
# when using bundler, symlink has to run before migrate (unless you want to fully rebundle each deployment)
|
404
408
|
set :migrate_target, :current
|
405
|
-
set :running_migrations, true
|
406
409
|
update_code
|
407
410
|
symlink
|
408
411
|
migrate
|
@@ -475,7 +478,6 @@ namespace :deploy do
|
|
475
478
|
Deploys a `cold' application. It will deploy the code.
|
476
479
|
DESC
|
477
480
|
task :default do
|
478
|
-
set :running_cold_deploy, true
|
479
481
|
update
|
480
482
|
end
|
481
483
|
|
@@ -484,14 +486,25 @@ namespace :deploy do
|
|
484
486
|
pending migrations.
|
485
487
|
DESC
|
486
488
|
task :migrations do
|
487
|
-
set :running_cold_deploy, true
|
488
|
-
set :running_migrations, true
|
489
489
|
update
|
490
490
|
migrate
|
491
491
|
end
|
492
492
|
|
493
493
|
end
|
494
|
+
|
495
|
+
task :migrations_init do
|
496
|
+
set :running_migrations, true
|
497
|
+
end
|
494
498
|
|
499
|
+
task :cold_init do
|
500
|
+
set :running_cold_deploy, true
|
501
|
+
end
|
502
|
+
|
503
|
+
task :cold_migrations_init do
|
504
|
+
set :running_migrations, true
|
505
|
+
set :running_cold_deploy, true
|
506
|
+
end
|
507
|
+
|
495
508
|
desc "This does nothing, but is here for backwards compatibility."
|
496
509
|
task :start, :roles => :app do
|
497
510
|
end
|