Solved problem by following changes:
# config/unicorn.rb
Unicorn::HttpServer::START_CTX[0] = "#{rails_root}/bin/unicorn"
before_exec do |server|
# Ensure unicorn picks up our newest Gemfile
ENV['BUNDLE_GEMFILE'] = "<%= current_path %>/Gemfile"
end
# unicorn.cap
def run_unicorn
within current_path do
# change execute :unicorn, instead of :unicorn_rails
execute :unicorn, "-c #{current_path}/config/unicorn.rb -D -E #{fetch(:rails_env)}"
end
end
See also: http://unicorn.bogomips.org/Sandbox.html