pixelforce_recipes 3.4 → 3.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ac5d73139a1d06f05d13662224fcc733946bc496dc95181e0ce23a9d12a0e0c
|
|
4
|
+
data.tar.gz: 2af497f3eaf47a9b72a72513f9a049d76faa5c3fb900226c6ff3ca49b89cce5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7e95f0e437b2a350a3b38ffb9c151a8b04432021be31a03860ba09ad7cf6ea0ec6c879c3341d5f548ebca90986ff6f17cafbb0f5d167a5cc7c941de4802399e
|
|
7
|
+
data.tar.gz: 9126291489081e9dadca52ee3f671e8995f173ae39b8decad2b7547463e0b0f6657b18542f66b2fb579e693fe3952bcb677b05bf9e43f29bf9031cf216bd0fbf
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
namespace :logrotate do
|
|
2
2
|
desc "Setup logrotate configuration for this application"
|
|
3
3
|
task :setup do
|
|
4
|
-
on roles(:
|
|
4
|
+
on roles(:web) do
|
|
5
5
|
template "logrotate.erb", "/tmp/logrotate"
|
|
6
6
|
sudo "mv /tmp/logrotate /etc/logrotate.d/#{fetch(:application)}"
|
|
7
|
+
sudo "chown root:root /etc/logrotate.d/#{fetch(:application)}"
|
|
7
8
|
end
|
|
8
9
|
end
|
|
9
10
|
end
|
|
@@ -5,6 +5,8 @@ namespace :puma do
|
|
|
5
5
|
template 'puma.rb.erb', '/tmp/puma_conf'
|
|
6
6
|
sudo "mv /tmp/puma_conf #{shared_path}/config/puma.rb"
|
|
7
7
|
execute "mkdir -p #{shared_path}/pids"
|
|
8
|
+
template "nginx_puma_config.erb", "/tmp/nginx_puma_config"
|
|
9
|
+
sudo "mv /tmp/nginx_puma_config /etc/nginx/sites-enabled/#{fetch(:application)}"
|
|
8
10
|
end
|
|
9
11
|
end
|
|
10
12
|
|
|
@@ -40,5 +42,26 @@ namespace :puma do
|
|
|
40
42
|
sudo 'supervisorctl update'
|
|
41
43
|
end
|
|
42
44
|
end
|
|
45
|
+
|
|
46
|
+
task :start do
|
|
47
|
+
on roles(:web) do
|
|
48
|
+
execute "supervisorctl start #{fetch(:application)}"
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
task :stop do
|
|
52
|
+
on roles(:web) do
|
|
53
|
+
execute "supervisorctl signal INT #{fetch(:application)}"
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
task :restart do
|
|
57
|
+
on roles(:web) do
|
|
58
|
+
execute "supervisorctl signal USR1 #{fetch(:application)}"
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
task :reload do
|
|
62
|
+
on roles(:web) do
|
|
63
|
+
execute "supervisorctl signal USR2 #{fetch(:application)}"
|
|
64
|
+
end
|
|
65
|
+
end
|
|
43
66
|
end
|
|
44
67
|
end
|
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: '3.
|
|
4
|
+
version: '3.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: 2021-
|
|
11
|
+
date: 2021-12-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|