add mina sidekiq
This commit is contained in:
parent
400d801519
commit
62d1f394a3
3
Gemfile
3
Gemfile
|
@ -38,7 +38,8 @@ gem 'newrelic_rpm'
|
||||||
|
|
||||||
gem 'mina', require: false
|
gem 'mina', require: false
|
||||||
gem 'mina-multistage', require: false
|
gem 'mina-multistage', require: false
|
||||||
gem 'mina-unicorn', :require => false
|
gem 'mina-sidekiq', require: false
|
||||||
|
gem 'mina-unicorn', require: false
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'spring'
|
gem 'spring'
|
||||||
|
|
|
@ -130,6 +130,8 @@ GEM
|
||||||
rake
|
rake
|
||||||
mina-multistage (0.1.1)
|
mina-multistage (0.1.1)
|
||||||
mina (>= 0.2.1)
|
mina (>= 0.2.1)
|
||||||
|
mina-sidekiq (0.3.1)
|
||||||
|
mina
|
||||||
mina-unicorn (0.0.4)
|
mina-unicorn (0.0.4)
|
||||||
mini_magick (4.1.0)
|
mini_magick (4.1.0)
|
||||||
mini_portile (0.6.2)
|
mini_portile (0.6.2)
|
||||||
|
@ -320,6 +322,7 @@ DEPENDENCIES
|
||||||
jquery-rails
|
jquery-rails
|
||||||
mina
|
mina
|
||||||
mina-multistage
|
mina-multistage
|
||||||
|
mina-sidekiq
|
||||||
mina-unicorn
|
mina-unicorn
|
||||||
mini_magick
|
mini_magick
|
||||||
mongoid
|
mongoid
|
||||||
|
|
|
@ -7,6 +7,7 @@ require 'mina/rails'
|
||||||
require 'mina/git'
|
require 'mina/git'
|
||||||
require 'mina/rvm' # for rvm support. (http://rvm.io)
|
require 'mina/rvm' # for rvm support. (http://rvm.io)
|
||||||
require 'mina/unicorn'
|
require 'mina/unicorn'
|
||||||
|
require 'mina_sidekiq/tasks'
|
||||||
|
|
||||||
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
|
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
|
||||||
# They will be linked in the 'deploy:link_shared_paths' step.
|
# They will be linked in the 'deploy:link_shared_paths' step.
|
||||||
|
@ -47,6 +48,7 @@ task :deploy => :environment do
|
||||||
|
|
||||||
to :launch do
|
to :launch do
|
||||||
invoke :'unicorn:restart'
|
invoke :'unicorn:restart'
|
||||||
|
invoke :'sidekiq:restart'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
---
|
---
|
||||||
:concurrency: 2
|
:concurrency: 2
|
||||||
:pidfile: tmp/pids/sidekiq.pid
|
|
||||||
:logfile: log/sidekiq.log
|
|
||||||
staging:
|
|
||||||
:concurrency: 2
|
|
||||||
production:
|
|
||||||
:concurrency: 2
|
|
||||||
:queues:
|
:queues:
|
||||||
- [default, 2]
|
- [default, 2]
|
||||||
|
|
Loading…
Reference in New Issue