Permalink
Browse files

Merge pull request #4 from mcrowe/master

Specify BUNDLE_GEMFILE in reload task
  • Loading branch information...
2 parents 5b5ed02 + 1efee9f commit c1e7a3f2794dd070367d0808ad102a6d20d39cf2 @sosedoff committed Jan 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/capistrano-unicorn/capistrano_integration.rb
View
2 lib/capistrano-unicorn/capistrano_integration.rb
@@ -59,7 +59,7 @@ def remote_file_exists?(full_path)
logger.important("No PIDs found. Starting Unicorn server...", "Unicorn")
config_path = "#{current_path}/config/unicorn/#{unicorn_env}.rb"
if remote_file_exists?(config_path)
- run "cd #{current_path} && bundle exec unicorn -c #{config_path} -E #{app_env} -D"
+ run "cd #{current_path} && BUNDLE_GEMFILE=#{current_path}/Gemfile bundle exec unicorn -c #{config_path} -E #{app_env} -D"
@scaryguy
scaryguy Apr 24, 2013

I have been pulling my hair since 12 hours!!!

Thank you!!

About this issue:
http://blog.willj.net/2011/08/02/fixing-the-gemfile-not-found-bundlergemfilenotfound-error/

else
logger.important("Config file for \"#{unicorn_env}\" environment was not found at \"#{config_path}\"", "Unicorn")
end

0 comments on commit c1e7a3f

Please sign in to comment.