capistrano-unformatt 2.1 → 2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd2d1f6e3286697ea327d825b0ac10896feacb19
4
- data.tar.gz: 1a619611105567559684c4dd92ca150f5b47f913
3
+ metadata.gz: ff6ba87f5e7da88f7e93c405d7d798c39ad2ee64
4
+ data.tar.gz: 6362c351e507f74ebb3b9d7e6afbd164f399e84b
5
5
  SHA512:
6
- metadata.gz: cfc4f5d1f8acfe764506aef882d1b466b5b33f3188f0b146fdadefb864d83529fbf4884a906f6355d355f21a4f2ead18db8b7f647c96ffa8c7b1b96ea187ea52
7
- data.tar.gz: c9115b1c04a76a403ed557376922b9e260df5445f004629c4bfdead75a1e34e452e43e1d3f47853b0e3c64a11143036c4dd9d97f89efb73c7e2308c52556848a
6
+ metadata.gz: 2885363b36c7a64a37c6ba3aa395ba2886d2afb5cbbefa72346dab5c96fe989458f7799d973dd67add36488ca26f27c59dc28bbfbaa33d99dd97872a0a0e45d4
7
+ data.tar.gz: 962f85e106e71bfdeff440be925ed32dd8725431798baa866c3e345ae17e97a3ba2b1502838a01adb090e30023f9bbf3e7eb960b8e597aa7bc5bdd38061a11b4
data/CHANGELOG.md CHANGED
@@ -101,3 +101,7 @@
101
101
  ## v2.1
102
102
 
103
103
  * Fixes on deploy install, improved methods for partial setup
104
+
105
+ ## v2.2
106
+
107
+ * Added method to reload on puma daemon
@@ -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.1'
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, 8) %>
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
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-unformatt
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.1'
4
+ version: '2.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - unformatt