capistrano-elobuff 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
data/elobuff_capistrano.gemspec
CHANGED
@@ -14,6 +14,13 @@ Capistrano::Configuration.instance.load do
|
|
14
14
|
web.restart
|
15
15
|
end
|
16
16
|
|
17
|
+
desc "Perform a simple deployment with asset compilation"
|
18
|
+
task :assets do
|
19
|
+
update_code
|
20
|
+
upgrade_assets
|
21
|
+
web.restart
|
22
|
+
end
|
23
|
+
|
17
24
|
desc "Perform a full deploy with database migrations"
|
18
25
|
task :full do
|
19
26
|
top.stop
|
@@ -23,6 +30,7 @@ Capistrano::Configuration.instance.load do
|
|
23
30
|
end
|
24
31
|
|
25
32
|
task :update_code do; end
|
33
|
+
task :upgrade_assets do; end
|
26
34
|
task :upgrade_database do; end
|
27
35
|
end
|
28
36
|
end
|
@@ -6,8 +6,8 @@ require "capistrano/elobuff/ec2/server"
|
|
6
6
|
Capistrano::Configuration.instance.load do
|
7
7
|
require_settings :ec2_ami, :ec2_instance_type, :ec2_security_group, :ec2_availability_zone
|
8
8
|
|
9
|
-
set_default(:ec2_key) { ENV["AWS_EC2_KEY"] ||
|
10
|
-
set_default(:ec2_secret) { ENV["AWS_EC2_SECRET"] ||
|
9
|
+
set_default(:ec2_key) { ENV["AWS_EC2_KEY"] || die("Please specify an AWS_EC2_KEY") }
|
10
|
+
set_default(:ec2_secret) { ENV["AWS_EC2_SECRET"] || die("Please specify an AWS_EC2_SECRET") }
|
11
11
|
|
12
12
|
set_default(:ec2) { Capistrano::Elobuff::Ec2::Compute.new application, ec2_key, ec2_secret }
|
13
13
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
2
|
require_settings :current_path
|
3
3
|
|
4
|
-
after "deploy:
|
5
|
-
after "deploy:
|
4
|
+
after "deploy:upgrade_assets", "assets:compile"
|
5
|
+
after "deploy:upgrade_assets", "assets:upload_manifest"
|
6
6
|
|
7
7
|
namespace :assets do
|
8
8
|
desc "Compile and sync assets"
|