capistrano-unformatt 2.1 → 2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/capistrano-unformatt.gemspec +1 -1
- data/vendor/templates/puma.daemon.erb +12 -0
- data/vendor/templates/puma.rb.erb +1 -3
- 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: ff6ba87f5e7da88f7e93c405d7d798c39ad2ee64
|
4
|
+
data.tar.gz: 6362c351e507f74ebb3b9d7e6afbd164f399e84b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2885363b36c7a64a37c6ba3aa395ba2886d2afb5cbbefa72346dab5c96fe989458f7799d973dd67add36488ca26f27c59dc28bbfbaa33d99dd97872a0a0e45d4
|
7
|
+
data.tar.gz: 962f85e106e71bfdeff440be925ed32dd8725431798baa866c3e345ae17e97a3ba2b1502838a01adb090e30023f9bbf3e7eb960b8e597aa7bc5bdd38061a11b4
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano-unformatt"
|
7
|
-
spec.version = '2.
|
7
|
+
spec.version = '2.2'
|
8
8
|
spec.authors = ["unformatt"]
|
9
9
|
spec.email = ["unformatt@gmail.com"]
|
10
10
|
spec.description = "Custom recipes for Unformatt projects"
|
@@ -67,6 +67,18 @@ case "$1" in
|
|
67
67
|
fi
|
68
68
|
;;
|
69
69
|
|
70
|
+
reload)
|
71
|
+
echo -ne "<%= "Reloading #{fetch(:application)}puma..." %>"
|
72
|
+
|
73
|
+
if [ -z "$(getPID)" ]; then
|
74
|
+
echo "is not running!"
|
75
|
+
else
|
76
|
+
kill -USR2 $(getPID) &> /dev/null
|
77
|
+
|
78
|
+
echo "reloaded!"
|
79
|
+
fi
|
80
|
+
;;
|
81
|
+
|
70
82
|
*)
|
71
83
|
echo "usage: $0 {start|stop|restart}"
|
72
84
|
esac
|
@@ -9,7 +9,7 @@ pidfile '<%="#{shared_path}/pids/puma.pid"%>'
|
|
9
9
|
state_path '<%="#{shared_path}/pids/puma.state"%>'
|
10
10
|
stdout_redirect "<%="#{shared_path}/log/puma.stdout.log"%>", "<%="#{shared_path}/log/puma.stderr.log"%>", true
|
11
11
|
|
12
|
-
threads <%= fetch(:app_server_min_threads, 0) %>, <%= fetch(:app_server_max_threads,
|
12
|
+
threads <%= fetch(:app_server_min_threads, 0) %>, <%= fetch(:app_server_max_threads, 4) %>
|
13
13
|
bind "<%="tcp://#{fetch(:app_server_host)}:#{fetch(:app_server_port)}"%>"
|
14
14
|
workers <%= fetch(:app_server_workers, 4) %>
|
15
15
|
|
@@ -20,5 +20,3 @@ on_worker_boot do
|
|
20
20
|
ActiveRecord::Base.establish_connection
|
21
21
|
end
|
22
22
|
end
|
23
|
-
|
24
|
-
|