Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/capistrano3/tasks/unicorn.rake
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ namespace :unicorn do
if test("[ -e #{fetch(:unicorn_pid)} ] && kill -0 #{pid}")
info "unicorn is running..."
else
with rails_env: fetch(:rails_env) do
execute :bundle, "exec unicorn", "-c", fetch(:unicorn_config_path), "-E", fetch(:unicorn_rack_env), "-D", fetch(:unicorn_options)
with rails_env: fetch(:rails_env),
bundle_gemfile: current_path.join("Gemfile") \
do
execute :bundle, "exec", "unicorn", "-c", fetch(:unicorn_config_path), "-E", fetch(:unicorn_rack_env), "-D", fetch(:unicorn_options)
end
end
end
Expand Down