capistrano-o2web-recipes 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/o2web_recipes/version.rb +1 -2
- data/lib/capistrano/tasks/o2web_recipes.rake +17 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 409018e429c809606655699c0f0fb34c09945e15
|
4
|
+
data.tar.gz: 0307eb033ccafa9f0463abbe18d71e344cd4e43d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d03bd541cd21b664560f255e0eb66f0f3014009593366122c62816ccf95814e9dbab049b802c0f792048e7b086cc96170b050e523a25f3fce81fd1eef1980382
|
7
|
+
data.tar.gz: 86be34715957f5842776bc933f6529d4efb200780ccb64f1c0e7ab6221996decb1d81297040b15e7d9379b5973a1da3eb5e504a5e4c3b461bd800dbdb87a6cc6
|
@@ -1,5 +1,16 @@
|
|
1
1
|
require 'erb'
|
2
2
|
|
3
|
+
namespace :load do
|
4
|
+
task :defaults do
|
5
|
+
set :files_public_dirs, ['system']
|
6
|
+
set :files_private_dirs, []
|
7
|
+
|
8
|
+
set :nginx_workers, 1
|
9
|
+
set :nginx_assets_dirs, %w[assets system]
|
10
|
+
set :nginx_max_body_size, '10m'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
3
14
|
Rake::Task["deploy:compile_assets"].clear
|
4
15
|
|
5
16
|
namespace :deploy do
|
@@ -33,16 +44,13 @@ namespace :deploy do
|
|
33
44
|
run_locally { execute "rm -rf #{local_dir}" }
|
34
45
|
end
|
35
46
|
end
|
36
|
-
end
|
37
47
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
set :nginx_assets_dirs, %w[assets system]
|
45
|
-
set :nginx_max_body_size, '10m'
|
48
|
+
after :deploy, :touch_cron_log do
|
49
|
+
on roles :app do
|
50
|
+
within shared_path do
|
51
|
+
execute :touch, 'log/cron.log'
|
52
|
+
end
|
53
|
+
end
|
46
54
|
end
|
47
55
|
end
|
48
56
|
|