pixelforce_cms 0.9.9.9 → 1.0
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/lib/generators/pixelforce_cms/install_generator.rb +1 -0
- data/lib/generators/pixelforce_cms/templates/recipes/delayed_job.rb +9 -1
- data/lib/generators/pixelforce_cms/templates/recipes/templates/delayed_job_init.erb +1 -1
- data/lib/generators/pixelforce_cms/templates/recipes/templates/monit_delayed_config.erb +4 -0
- data/lib/generators/pixelforce_cms/templates/unicorn.rb +1 -1
- data/lib/pixelforce_cms/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86bec6a7b350b5ed94ff8971e264aaf394a9e469
|
4
|
+
data.tar.gz: 1d6b2eaa36c1b0d61b2904f870554dcd2ec5bf2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5df76fd6877d523ef3f9c58af924411f07a0832b160b0f2359999969623980be30f7de407aa90206a114f3cfc29ba00eed8267f104a1400ec5de47b452c6b3cb
|
7
|
+
data.tar.gz: 36ee115dd8290a567da2133dc6ed9b629a35550c819d195d2930604d5342fc241e639ec48821545a7d273ed9055a818a45a5b174ee8bd6e5b414fe086fa655e9
|
@@ -34,6 +34,7 @@ module PixelforceCms
|
|
34
34
|
copy_file "recipes/templates/nginx_config.erb", "config/recipes/templates/nginx_config.erb"
|
35
35
|
copy_file "recipes/templates/unicorn_init.erb", "config/recipes/templates/unicorn_init.erb"
|
36
36
|
copy_file "recipes/templates/sphinx_init.erb", "config/recipes/templates/sphinx_init.erb"
|
37
|
+
copy_file "recipes/templates/monit_delayed_config.erb", "config/recipes/templates/monit_delayed_config.erb"
|
37
38
|
copy_file "recipes/templates/delayed_job_init.erb", "config/recipes/templates/delayed_job_init.erb"
|
38
39
|
end
|
39
40
|
|
@@ -8,7 +8,15 @@ namespace :delayed_job do
|
|
8
8
|
run "#{sudo} chmod +x /etc/init.d/#{application}_delayed"
|
9
9
|
run "#{sudo} update-rc.d #{application}_delayed defaults"
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
|
+
desc "Setup delayed job monit configuration for this application"
|
13
|
+
task :setup_monit, roles: :web do
|
14
|
+
run "#{sudo} apt-get -y install monit"
|
15
|
+
template "monit_delayed_config.erb", "/tmp/delayed_monit"
|
16
|
+
run "#{sudo} mv /tmp/delayed_monit /etc/monit/conf.d/#{application}_delayed"
|
17
|
+
run "#{sudo} monit reload"
|
18
|
+
run "#{sudo} monit start all"
|
19
|
+
end
|
12
20
|
|
13
21
|
%w[start stop reindex].each do |command|
|
14
22
|
desc "#{command} delayed"
|
@@ -0,0 +1,4 @@
|
|
1
|
+
check process <%= application %>_delayed_job with pidfile /home/deploy/<%= application %>/shared/pids/delayed_job.pid
|
2
|
+
start program = "/etc/init.d/<%= application %>_delayed start" with timeout 90 seconds
|
3
|
+
stop program = "/etc/init.d/<%= application %>_delayed stop"
|
4
|
+
if totalmem > 800.0 MB for 10 cycles then restart
|
@@ -6,7 +6,7 @@ listen '/tmp/<%= @application_name %>.sock', :backlog => 2048
|
|
6
6
|
listen 5001, :tcp_nopush => true
|
7
7
|
|
8
8
|
timeout 60
|
9
|
-
pid "/home/deploy/<%= @application_name %>/shared/pids
|
9
|
+
pid "/home/deploy/<%= @application_name %>/shared/pids/<%= @application_name %>.pid"
|
10
10
|
preload_app true
|
11
11
|
GC.respond_to?(:copy_on_write_friendly=) and
|
12
12
|
GC.copy_on_write_friendly = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pixelforce_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0
|
4
|
+
version: '1.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Zhang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- lib/generators/pixelforce_cms/templates/recipes/delayed_job.rb
|
88
88
|
- lib/generators/pixelforce_cms/templates/recipes/sphinx.rb
|
89
89
|
- lib/generators/pixelforce_cms/templates/recipes/templates/delayed_job_init.erb
|
90
|
+
- lib/generators/pixelforce_cms/templates/recipes/templates/monit_delayed_config.erb
|
90
91
|
- lib/generators/pixelforce_cms/templates/recipes/templates/nginx_config.erb
|
91
92
|
- lib/generators/pixelforce_cms/templates/recipes/templates/sphinx_init.erb
|
92
93
|
- lib/generators/pixelforce_cms/templates/recipes/templates/unicorn_init.erb
|