cmdeploy 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cmdeploy/recipes/assets.rb +1 -1
- data/lib/cmdeploy/recipes/bundler.rb +1 -1
- data/lib/cmdeploy/recipes/nginx.rb +2 -2
- data/lib/cmdeploy/recipes/password_file.rb +1 -1
- data/lib/cmdeploy/recipes/revision_history.rb +1 -1
- data/lib/cmdeploy/recipes/unicorn.rb +2 -2
- data/lib/cmdeploy/version.rb +1 -1
- metadata +1 -1
@@ -7,7 +7,7 @@ module CMDeploy
|
|
7
7
|
|
8
8
|
namespace :deploy do
|
9
9
|
namespace :assets do
|
10
|
-
desc "
|
10
|
+
desc "cmdeploy: Assets precompilation"
|
11
11
|
task :precompile do
|
12
12
|
run "cd #{release_path} && #{rake} RAILS_RELATIVE_URL_ROOT=/#{application} RAILS_ENV=#{stage} RAILS_GROUPS=assets assets:precompile"
|
13
13
|
end
|
@@ -7,7 +7,7 @@ module CMDeploy
|
|
7
7
|
|
8
8
|
namespace :deploy do
|
9
9
|
|
10
|
-
desc "
|
10
|
+
desc "cmdeploy: check and install gems via bundler"
|
11
11
|
task :bundle_setup, roles: :app do
|
12
12
|
run ". ~/.bashrc && cd #{release_path} && (bundle check || bundle install --without development) && bundle install --binstubs"
|
13
13
|
end
|
@@ -6,7 +6,7 @@ module CMDeploy
|
|
6
6
|
configuration.load do
|
7
7
|
|
8
8
|
namespace :nginx do
|
9
|
-
desc "
|
9
|
+
desc "cmdeploy: setup nginx configuration for this application"
|
10
10
|
task :setup, roles: :web do
|
11
11
|
template("nginx_unicorn.erb","/tmp/nginx_unicorn")
|
12
12
|
run "mv /tmp/nginx_unicorn #{nginx_conf_folder}/#{application}.conf"
|
@@ -17,7 +17,7 @@ module CMDeploy
|
|
17
17
|
after "deploy:setup", "nginx:setup"
|
18
18
|
|
19
19
|
%w[start stop restart status reload configtest].each do |command|
|
20
|
-
desc "
|
20
|
+
desc "cmdeploy: #{command} nginx"
|
21
21
|
task command, roles: :web do
|
22
22
|
run "#{sudo} /sbin/service nginx #{command}"
|
23
23
|
end
|
@@ -7,7 +7,7 @@ module CMDeploy
|
|
7
7
|
|
8
8
|
namespace :deploy do
|
9
9
|
|
10
|
-
desc "
|
10
|
+
desc "cmdeploy: copy password file from server"
|
11
11
|
task :copy_password_file, roles: :app do
|
12
12
|
begin
|
13
13
|
run "mkdir -p ~/.rails/#{application} && cp ~/.rails/#{application}/database.yml #{release_path}/config"
|
@@ -6,7 +6,7 @@ module CMDeploy
|
|
6
6
|
configuration.load do
|
7
7
|
|
8
8
|
namespace :unicorn do
|
9
|
-
desc "
|
9
|
+
desc "cmdeploy: create unicorn startup script"
|
10
10
|
task :setup, roles: :app do
|
11
11
|
run "mkdir -p #{unicorn_conf_folder}"
|
12
12
|
template("unicorn_conf.erb","/tmp/unicorn_conf")
|
@@ -15,7 +15,7 @@ module CMDeploy
|
|
15
15
|
after "deploy:setup", "unicorn:setup"
|
16
16
|
|
17
17
|
%w[start stop restart reload upgrade status rotate].each do |command|
|
18
|
-
desc "
|
18
|
+
desc "cmdeploy: #{command} unicorn"
|
19
19
|
task command, roles: :app do
|
20
20
|
run ". ~/.bashrc && uc #{command} ~/etc/unicorn/#{application}.conf"
|
21
21
|
end
|
data/lib/cmdeploy/version.rb
CHANGED