kstrano 0.0.15 → 0.0.16

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 +1 -1
  2. 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 'curl https://raw.github.com/gist/2868838/ > /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
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.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: