kstrano 0.0.11 → 0.0.12

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 +3 -1
  2. metadata +2 -2
data/lib/kstrano.rb CHANGED
@@ -305,5 +305,7 @@ after :deploy do
305
305
  airbrake::notify
306
306
  deploy::cleanup ## cleanup old releases
307
307
  kuma::fixcron
308
- sudo "/etc/init.d/php5-fpm reload"
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}/apcclear.php"
310
+ sudo "curl http://#{domain}/apcclear.php"
309
311
  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.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-23 00:00:00.000000000 Z
12
+ date: 2012-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano