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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b69181b199a2c7aae93dc4619c829e347fe3821
4
- data.tar.gz: be6b22a410f3126b08ed3e95244e1db6d4e716f9
3
+ metadata.gz: 86bec6a7b350b5ed94ff8971e264aaf394a9e469
4
+ data.tar.gz: 1d6b2eaa36c1b0d61b2904f870554dcd2ec5bf2c
5
5
  SHA512:
6
- metadata.gz: dc4322fe9a61f60358496af1de6349627abb81e6ca848515e0981cf1a428d921ae06c75c93a69b0da4628f68938fa6c082d54513553acb7c727a247d37f091e9
7
- data.tar.gz: e6b4164688d5e4a2a72988b07dcf34590236d3eac9620885f31cbd8b6786cd707492bac680890f8caf431c4761d58e0e0617bce8bde946a65c9bc16ca6c8c740
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
- # after "deploy:setup", "nginx:setup"
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"
@@ -3,7 +3,7 @@
3
3
  USER="deploy"
4
4
  PROJECT_PATH="<%= deploy_to %>"
5
5
  NAME=delayed_job
6
- DESC="Unicorn app for $USER"
6
+ DESC="Delayed Job for $USER"
7
7
  export RAILS_ENV=production
8
8
  PID="$PROJECT_PATH/shared/pids/delayed_job.pid"
9
9
 
@@ -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/unicorn.pid"
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
@@ -1,3 +1,3 @@
1
1
  module PixelforceCms
2
- VERSION = "0.9.9.9"
2
+ VERSION = "1.0"
3
3
  end
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.9.9.9
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-10-11 00:00:00.000000000 Z
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