kstrano 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kstrano.rb +1 -1
- metadata +1 -1
data/lib/kstrano.rb
CHANGED
@@ -306,7 +306,7 @@ after :deploy do
|
|
306
306
|
deploy::cleanup ## cleanup old releases
|
307
307
|
kuma::fixcron
|
308
308
|
serverproject = domain.split('.')[0]
|
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"
|
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
310
|
sudo "chmod 777 /home/projects/#{serverproject}/site/apcclear.php"
|
311
311
|
sudo "curl http://#{domain}/apcclear.php"
|
312
312
|
end
|