kstrano 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kstrano.rb +6 -1
- 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
|
-
|
303
|
+
try_sudo "sh -c 'cd #{latest_release} && #{php_bin} #{symfony_console} apc:clear'"
|
299
304
|
end
|