kstrano 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kstrano.rb +2 -1
- metadata +1 -1
data/lib/kstrano.rb
CHANGED
@@ -306,6 +306,7 @@ after :deploy do
|
|
306
306
|
deploy::cleanup ## cleanup old releases
|
307
307
|
kuma::fixcron
|
308
308
|
serverproject = domain.split('.')[0]
|
309
|
-
sudo "echo \"<?php if (in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) { apc_clear_cache(); apc_clear_cache('user'); apc_clear_cache('opcode'); echo json_encode(array('success' => true)); } else { die('SUPER TOP SECRET'); }\" > /home/projects/#{serverproject}/site/apcclear.php"
|
309
|
+
sudo "sh -c 'echo \"<?php if (in_array(@$_SERVER[\'REMOTE_ADDR\'], array(\'127.0.0.1\', \'::1\'))) { apc_clear_cache(); apc_clear_cache(\'user\'); apc_clear_cache(\'opcode\'); echo json_encode(array(\'success\' => true)); } else { die(\'SUPER TOP SECRET\'); }\" > /home/projects/#{serverproject}/site/apcclear.php"
|
310
|
+
sudo "chmod 777 /home/projects/#{serverproject}/site/apcclear.php"
|
310
311
|
sudo "curl http://#{domain}/apcclear.php"
|
311
312
|
end
|