add mina sidekiq

This commit is contained in:
yafeilee 2015-04-12 00:59:38 +08:00
parent 400d801519
commit 62d1f394a3
4 changed files with 7 additions and 7 deletions

View File

@ -38,7 +38,8 @@ gem 'newrelic_rpm'
gem 'mina', 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
gem 'spring'

View File

@ -130,6 +130,8 @@ GEM
rake
mina-multistage (0.1.1)
mina (>= 0.2.1)
mina-sidekiq (0.3.1)
mina
mina-unicorn (0.0.4)
mini_magick (4.1.0)
mini_portile (0.6.2)
@ -320,6 +322,7 @@ DEPENDENCIES
jquery-rails
mina
mina-multistage
mina-sidekiq
mina-unicorn
mini_magick
mongoid

View File

@ -7,6 +7,7 @@ require 'mina/rails'
require 'mina/git'
require 'mina/rvm' # for rvm support. (http://rvm.io)
require 'mina/unicorn'
require 'mina_sidekiq/tasks'
# 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.
@ -47,6 +48,7 @@ task :deploy => :environment do
to :launch do
invoke :'unicorn:restart'
invoke :'sidekiq:restart'
end
end
end

View File

@ -1,10 +1,4 @@
---
:concurrency: 2
:pidfile: tmp/pids/sidekiq.pid
:logfile: log/sidekiq.log
staging:
:concurrency: 2
production:
:concurrency: 2
:queues:
- [default, 2]