pitluga / subcontractor

rvm aware process launcher for foreman
85 stars 24 forks source link

Bundler environment isn't reset for spawned processes #18

Closed ralfthewise closed 11 years ago

ralfthewise commented 11 years ago

My Procfile has a line like this:

faye: bundle exec subcontract --rvm 1.9.3 --chdir faye -- bundle exec rackup config.ru -s thin -p $PORT -E production

however it doesn't execute rackup under the correct bundler environment - instead it uses the original environment. See pull request for proposed fix.

Also, did you really mean to checkin your ".rvmrc" file for this project?

pgr0ss commented 11 years ago

I'm seeing the same problem with bundler in spawned processes, and this commit seems to fix it.