kstrano 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kstrano.rb +10 -9
- metadata +4 -4
data/lib/kstrano.rb
CHANGED
@@ -14,9 +14,6 @@ set :dump_assetic_assets, true
|
|
14
14
|
set :interactive_mode, false
|
15
15
|
set :clear_controllers, false # set this by default to false, because it's quiet dangerous for existing projects. You need to make sure it doesn't delete your app.php
|
16
16
|
|
17
|
-
# http://getcomposer.org/doc/03-cli.md
|
18
|
-
set :composer_options, "--no-scripts --verbose --prefer-dist --optimize-autoloader"
|
19
|
-
|
20
17
|
require "#{File.dirname(__FILE__)}/helpers/git_helper.rb"
|
21
18
|
require "#{File.dirname(__FILE__)}/helpers/kuma_helper.rb"
|
22
19
|
require 'rexml/document'
|
@@ -118,13 +115,17 @@ namespace :kuma do
|
|
118
115
|
|
119
116
|
namespace :apc do
|
120
117
|
|
121
|
-
desc "
|
122
|
-
task :
|
118
|
+
desc "Prepare for APC cache clear"
|
119
|
+
task :prepare_clear do
|
123
120
|
if server_name.nil? || server_name.empty?
|
124
121
|
server_name = domain.split('.')[0]
|
125
122
|
end
|
126
123
|
sudo "sh -c 'curl https://raw.github.com/Kunstmaan/kStrano/master/config/apcclear.php > /home/projects/#{server_name}/site/apcclear.php'"
|
127
124
|
sudo "chmod 777 /home/projects/#{server_name}/site/apcclear.php"
|
125
|
+
end
|
126
|
+
|
127
|
+
desc "Clear the APC cache"
|
128
|
+
task :clear do
|
128
129
|
sudo "curl http://#{domain}/apcclear.php"
|
129
130
|
end
|
130
131
|
|
@@ -207,9 +208,6 @@ after "symfony:vendors:upgrade", "kuma:ssh_socket:unfix"
|
|
207
208
|
after "symfony:composer:update", "kuma:ssh_socket:unfix"
|
208
209
|
after "symfony:composer:install", "kuma:ssh_socket:unfix"
|
209
210
|
|
210
|
-
# clear the cache before the warmup
|
211
|
-
before "symfony:cache:warmup", "symfony:cache:clear"
|
212
|
-
|
213
211
|
# set the right permissions on the vendor folder ...
|
214
212
|
after "symfony:composer:copy_vendors" do
|
215
213
|
sudo "sh -c 'if [ -d #{latest_release}/vendor ] ; then chown -R #{application}:#{application} #{latest_release}/vendor; fi'"
|
@@ -237,8 +235,11 @@ before "deploy:finalize_update" do
|
|
237
235
|
sudo "setfacl -R -m group:admin:rwx #{latest_release}"
|
238
236
|
end
|
239
237
|
|
238
|
+
before "deploy:finalize_update" do
|
239
|
+
kuma.apc.prepare_clear
|
240
|
+
end
|
241
|
+
|
240
242
|
after "deploy:finalize_update" do
|
241
|
-
kuma.fpm.reload
|
242
243
|
kuma.apc.clear
|
243
244
|
end
|
244
245
|
|
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: 1.0.
|
4
|
+
version: 1.0.6
|
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: 2013-03-
|
12
|
+
date: 2013-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capifony
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.2.
|
21
|
+
version: 2.2.8
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.2.
|
29
|
+
version: 2.2.8
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: capistrano-ext
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|