kstrano 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kstrano.rb +3 -1
- 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
|
-
|
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.
|
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-
|
12
|
+
date: 2012-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|