add unicorn file

This commit is contained in:
yafeilee 2014-05-13 14:01:53 +08:00
parent e6ff40548a
commit e6f3b20862
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ gem 'rqrcode-with-patches', require: 'rqrcode'
gem 'chunky_png'
gem 'sidekiq'
gem 'rest-client'
gem 'unicorn'
group :development do
gem 'spring'

View File

@ -55,7 +55,7 @@ end
namespace :unicorn do
set :unicorn_pid, "#{app_path}/tmp/pids/unicorn_wblog.pid"
set :start_unicorn, %{
cd #{app_path} && unicorn -c config/unicorn/#{rails_env}.rb -E #{rails_env} -D
cd #{app_path} && bundle exec unicorn -c config/unicorn/#{rails_env}.rb -E #{rails_env} -D
}
# Start task