mina-extras 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mina-extras/puma.rb +5 -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: efeacc23cf9f8070ea85819a1a43eaaefa6ebfc5
|
4
|
+
data.tar.gz: de9dbb5d17d0d95c721142bf0c8a995741b149d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f83279bcf4646b9575b4a90b216342d14fdb9e2131f61273a6a065e7b64f007c1c4051ff780b20488346f365f192539b6b5854160434d5790a760cc733b301
|
7
|
+
data.tar.gz: f109ffc9ae7169da57294e90d80ff25408231e9c2e0bf0e8f51a82e29a8b34fe1952fb1f653864646deba5269b338862edd2f5fea27dadea76ed27ec656bf396
|
data/lib/mina-extras/puma.rb
CHANGED
@@ -26,7 +26,11 @@ namespace :puma do
|
|
26
26
|
desc 'Restart puma'
|
27
27
|
task :restart => [:config, :environment] do
|
28
28
|
queue %{
|
29
|
-
|
29
|
+
PUMA_PID=$(cat "#{deploy_to}/#{shared_path}/pids/puma.pid")
|
30
|
+
kill -0 $PUMA_PID > /dev/null 2>&1
|
31
|
+
if [ $? != 0 ]; then
|
32
|
+
rm "#{deploy_to}/#{shared_path}/sockets/pumactl.sock" > /dev/null 2>&1
|
33
|
+
rm "#{deploy_to}/#{shared_path}/sockets/puma.sock" > /dev/null 2>&1
|
30
34
|
echo "-----> Starting puma"
|
31
35
|
#{echo_cmd puma_start_cmd}
|
32
36
|
else
|