pixelforce_recipes 0.7 → 0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/lib/pixelforce_recipes/logrotate.rb +14 -0
- data/lib/pixelforce_recipes/puma.rb +1 -0
- data/lib/pixelforce_recipes/templates/logrotate.erb +8 -0
- data/lib/pixelforce_recipes/templates/nginx_config.erb +1 -1
- data/lib/pixelforce_recipes/templates/nginx_puma_config.erb +4 -4
- data/lib/pixelforce_recipes/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42b7d58eb36030dcc00600ce231078c122c20f3b
|
|
4
|
+
data.tar.gz: 1f28e8d106935bb6c525fa791aaf7e4d1ca88194
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d5ef1d74316d14ae055a3597e94269cbe7fb8b4c83c9bb9885a4f5a71a05ae75d99dbde039963641ae7471bf8a7bb8c1814f8018878e228b3c64707e3bfe59a
|
|
7
|
+
data.tar.gz: f2878e214482ab60c9617c06778bfb9ef63d63b05d09715cbaec3a4dbefeb0c697205494dc6674a84b1286832b690b05b02ac95cd47649a2d7d8b763b798975d
|
data/Gemfile.lock
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
pixelforce_recipes (0.
|
|
4
|
+
pixelforce_recipes (0.8)
|
|
5
5
|
capistrano (> 2.0.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
airbrussh (1.
|
|
10
|
+
airbrussh (1.3.0)
|
|
11
11
|
sshkit (>= 1.6.1, != 1.7.0)
|
|
12
|
-
capistrano (3.
|
|
12
|
+
capistrano (3.10.2)
|
|
13
13
|
airbrussh (>= 1.0.0)
|
|
14
|
-
capistrano-harrow
|
|
15
14
|
i18n
|
|
16
15
|
rake (>= 10.0.0)
|
|
17
16
|
sshkit (>= 1.9.0)
|
|
18
|
-
|
|
17
|
+
concurrent-ruby (1.0.5)
|
|
19
18
|
diff-lcs (1.2.5)
|
|
20
|
-
i18n (0.
|
|
19
|
+
i18n (1.0.1)
|
|
20
|
+
concurrent-ruby (~> 1.0)
|
|
21
21
|
net-scp (1.2.1)
|
|
22
22
|
net-ssh (>= 2.6.5)
|
|
23
|
-
net-ssh (
|
|
23
|
+
net-ssh (4.2.0)
|
|
24
24
|
rake (10.5.0)
|
|
25
25
|
rspec (3.5.0)
|
|
26
26
|
rspec-core (~> 3.5.0)
|
|
@@ -35,7 +35,7 @@ GEM
|
|
|
35
35
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
36
36
|
rspec-support (~> 3.5.0)
|
|
37
37
|
rspec-support (3.5.0)
|
|
38
|
-
sshkit (1.
|
|
38
|
+
sshkit (1.16.0)
|
|
39
39
|
net-scp (>= 1.1.2)
|
|
40
40
|
net-ssh (>= 2.8.0)
|
|
41
41
|
|
|
@@ -49,4 +49,4 @@ DEPENDENCIES
|
|
|
49
49
|
rspec (~> 3.0)
|
|
50
50
|
|
|
51
51
|
BUNDLED WITH
|
|
52
|
-
1.
|
|
52
|
+
1.15.0
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
if Capistrano::Configuration.instance(false)
|
|
2
|
+
|
|
3
|
+
Capistrano::Configuration.instance(true).load do |instance|
|
|
4
|
+
|
|
5
|
+
namespace :logrotate do
|
|
6
|
+
|
|
7
|
+
desc "Setup logrotate configuration for this application"
|
|
8
|
+
task :setup, roles: :app do
|
|
9
|
+
template "logrotate.erb", "/tmp/logrotate"
|
|
10
|
+
run "#{sudo} mv /tmp/logrotate /etc/logrotate.d/#{application}"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -12,6 +12,7 @@ if Capistrano::Configuration.instance(false)
|
|
|
12
12
|
run "#{sudo} update-rc.d #{application} defaults"
|
|
13
13
|
template "nginx_puma_config.erb", "/tmp/nginx_puma_config"
|
|
14
14
|
run "#{sudo} mv /tmp/nginx_puma_config /etc/nginx/sites-enabled/#{application}"
|
|
15
|
+
template "logrotate.erb"
|
|
15
16
|
end
|
|
16
17
|
# after "deploy:setup", "nginx:setup"
|
|
17
18
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
upstream <%= application %> {
|
|
2
|
-
server unix
|
|
2
|
+
server unix:/tmp/<%= application %>.sock fail_timeout=0;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
server {
|
|
6
6
|
listen 80 default_server deferred;
|
|
7
7
|
server_name <%= server_address %>;
|
|
8
8
|
|
|
9
|
-
root
|
|
10
|
-
access_log
|
|
11
|
-
error_log
|
|
9
|
+
root <%= deploy_to %>/current/public;
|
|
10
|
+
access_log <%= deploy_to %>/current/log/nginx.access.log;
|
|
11
|
+
error_log <%= deploy_to %>/current/log/nginx.error.log info;
|
|
12
12
|
|
|
13
13
|
location ^~ /assets/ {
|
|
14
14
|
gzip_static on;
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pixelforce_recipes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.8'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Zhang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -84,8 +84,10 @@ files:
|
|
|
84
84
|
- bin/setup
|
|
85
85
|
- lib/pixelforce_recipes.rb
|
|
86
86
|
- lib/pixelforce_recipes/base.rb
|
|
87
|
+
- lib/pixelforce_recipes/logrotate.rb
|
|
87
88
|
- lib/pixelforce_recipes/puma.rb
|
|
88
89
|
- lib/pixelforce_recipes/sidekiq.rb
|
|
90
|
+
- lib/pixelforce_recipes/templates/logrotate.erb
|
|
89
91
|
- lib/pixelforce_recipes/templates/nginx_config.erb
|
|
90
92
|
- lib/pixelforce_recipes/templates/nginx_puma_config.erb
|
|
91
93
|
- lib/pixelforce_recipes/templates/puma_init.erb
|