kstrano 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/kstrano.rb +6 -1
  2. metadata +1 -1
data/lib/kstrano.rb CHANGED
@@ -10,6 +10,11 @@ set :campfire_account, "Kunstmaan"
10
10
 
11
11
  set :airbrake_api_key, nil
12
12
 
13
+ # PHP binary to execute
14
+ set :php_bin, "php"
15
+ # Symfony console bin
16
+ set :symfony_console, app_path + "/console"
17
+
13
18
 
14
19
  require "#{File.dirname(__FILE__)}/helpers/git_helper.rb"
15
20
  require "#{File.dirname(__FILE__)}/helpers/jenkins_helper.rb"
@@ -295,5 +300,5 @@ after :deploy do
295
300
  airbrake::notify
296
301
  deploy::cleanup ## cleanup old releases
297
302
  kuma::fixcron
298
- sudo "/etc/init.d/php5-fpm reload"
303
+ try_sudo "sh -c 'cd #{latest_release} && #{php_bin} #{symfony_console} apc:clear'"
299
304
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kstrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: