rob_cap_recipes 0.0.4.alpha1 → 0.0.4.alpha2
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.
- checksums.yaml +4 -4
- data/lib/rob_cap_recipes/recipes/puma.rb +5 -4
- data/lib/rob_cap_recipes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65eb330d3f040d0b67841940aa0147b5f7b2d486
|
|
4
|
+
data.tar.gz: 8003531da1de7b140f107324461ae8349af61eb7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6a6252e9e8ab9d2fcd8b45a7bd13e92173752a5a742dc391b17b1c2f392c28f28355f4e4aa28900e96653ae8e16ed41bef255f119388a78b3a8a7b852ac778c
|
|
7
|
+
data.tar.gz: 4b3773958631075b76936067aca899e509ee81c2963583f86deeb24ee99da06a9408442d8ca234ba2c67bc852ad497a114e5a8a471789db9a6624cf8fa4ea962
|
|
@@ -17,18 +17,19 @@ Capistrano::Configuration.instance(true).load do
|
|
|
17
17
|
run "#{sudo} mv /tmp/puma_init /etc/init.d/puma"
|
|
18
18
|
run "#{sudo} update-rc.d -f puma defaults"
|
|
19
19
|
run "#{sudo} touch /etc/puma.conf"
|
|
20
|
-
template "puma_run", "/tmp/run-puma"
|
|
20
|
+
template "puma_run.erb", "/tmp/run-puma"
|
|
21
21
|
run "chmod +x /tmp/run-puma"
|
|
22
22
|
run "#{sudo} mv /tmp/run-puma /usr/local/bin/run-puma"
|
|
23
|
-
run "#{sudo} /etc/init.d/puma add #{current_path} #{puma_user}"
|
|
24
23
|
end
|
|
25
24
|
after "deploy:setup", "puma_robstr:setup"
|
|
26
25
|
|
|
27
|
-
desc "Symlink the puma files into latest release"
|
|
26
|
+
desc "Update puma configa and Symlink the puma files into latest release"
|
|
28
27
|
task :symlink, roles: :app do
|
|
29
28
|
run "ln -nfs #{shared_path}/config/puma.rb #{release_path}/config/puma.rb"
|
|
30
29
|
run "ln -nfs #{shared_path}/sockets #{release_path}/tmp/sockets"
|
|
30
|
+
run "#{sudo} /etc/init.d/puma remove #{current_path}"
|
|
31
|
+
run "#{sudo} /etc/init.d/puma add #{current_path} #{puma_user}"
|
|
31
32
|
end
|
|
32
|
-
after "deploy:
|
|
33
|
+
after "deploy:symlink", "puma_robstr:symlink"
|
|
33
34
|
end
|
|
34
35
|
end
|