capun 0.0.35 → 0.0.36

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: 7550bf4a718eae76383022f37c3418bc34f9a4d5
4
- data.tar.gz: 6e2bc4558ce4dc659eb9462c06c2bf3165db4612
3
+ metadata.gz: bd2d0209333f80b6280c97e337ccdb16654cd33e
4
+ data.tar.gz: aa455b48e10975729edcb5d22d0d8aad9fab2799
5
5
  SHA512:
6
- metadata.gz: 967782850fc2f2ace0e1e8715ca61f419a8357cc9ec92e36d6f2da982625480a14f9a53955764ea6cea0ee48c5060ec97c808302753e75a9a6ce1ff23347686c
7
- data.tar.gz: 85d9e244b2ec6e71dd371792e4f364c60f2042beeaf07470700af5f59ae88301ae6f08bbde734915ad92b97ed415625aaca63f27220797f7417c8d93e2d5a3ee
6
+ metadata.gz: 44d2cbbd65e723b80dd5b33eb257053f0ddd3b109b5c872105e41df7c2f1f242c7047c9a7e7a5d48c8d6e4e817978d3086f1678230c4eb8d618261ff6815a36c
7
+ data.tar.gz: af28c3f6e18f044505c2cbc0967663adf7623751e797d1451b64d74569d848990dd03af291e544f37da929493630329c785fa7d511f4ad49a5c33624f8399fa3
@@ -69,7 +69,7 @@ end
69
69
  desc "Start server"
70
70
  task :start do
71
71
  invoke 'deploy:kill_me'
72
- invoke 'unicorn:start'
72
+ invoke 'unicorn:restart'
73
73
  invoke 'delayed_job:restart' if fetch(:delayed_job)
74
74
  invoke 'clockwork:restart' if fetch(:clockwork)
75
75
  end
@@ -97,6 +97,7 @@ namespace :deploy do
97
97
  task :kill_me do
98
98
  on roles(:app) do
99
99
  execute "cd /home/#{fetch(:user)}/apps/#{fetch(:application)}/shared/tmp/pids; for line in $(ls | grep unicorn); do kill -15 $(sudo cat $line) || true ; done;"
100
+ execute "sleep 3"
100
101
  end
101
102
  end
102
103
  before :deploy, 'deploy:kill_me'
@@ -219,7 +220,7 @@ namespace :deploy do
219
220
  on roles(:app) do
220
221
  execute :chmod, "+x #{release_path}/bin/start"
221
222
  info "making start executable"
222
- execute :sudo, :ln, "-nfs", "#{release_path}/bin/start /etc/init.d/autorestart-#{fetch(:application).gsub(/\./, '-')}"
223
+ execute :sudo, :ln, "-nfs", "#{release_path}/bin/start /etc/autostart/autorestart-#{fetch(:application).gsub(/\./, '-')}"
223
224
  info "Create symbolic link for autorestart"
224
225
  end
225
226
  end
@@ -1,3 +1,3 @@
1
1
  module Capun
2
- VERSION = "0.0.35"
2
+ VERSION = "0.0.36"
3
3
  end
@@ -21,13 +21,11 @@ fi
21
21
 
22
22
  COUNTER=5
23
23
  until [ $COUNTER -lt 1 ]; do
24
- echo COUNTER $COUNTER
25
- let COUNTER-=1
26
- python drivesink.py upload "backuping" <%= fetch(:backupDestinationFolder) || "backups/firstdedic-server/" + fetch(:application) %> >> log/backup.log
24
+ python drivesink.py upload "backuping" <%= fetch(:backupDestinationFolder) || "backups/firstdedic-server/" + fetch(:application) %> >> log/backup.log 2>&1
27
25
  if [ $? -eq 0 ]; then
28
- let COUNTER=0
26
+ COUNTER=0
29
27
  else
30
- let COUNTER-=1
28
+ COUNTER=$($COUNTER -1)
31
29
  fi
32
30
  done
33
31
 
@@ -1,3 +1,3 @@
1
1
  #!/bin/bash
2
- cd ..
2
+ cd /home/<%= fetch(:user) %>/apps/<%= fetch(:application) %>/current
3
3
  bundle exec cap <%= fetch(:stage) %> start
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.35
4
+ version: 0.0.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zamylin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-31 00:00:00.000000000 Z
11
+ date: 2016-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler