We use Git Tower to manage our git repositories, and we want to set up the ability to run an automatic rake db:migrate
whenever we pull down a new update. I've modified the post-merge git hook to look like this:
#!/bin/bash
bundle exec rake db:migrate
If I run this from the command line, it works just fine. However, if I try to run a git pull within Tower itself, I get the following error:
/Library/Ruby/Gems/1.8/gems/bundler-1.1.4/lib/bundler/spec_set.rb:90:in 'materialize': Could not find sass-3.2.1 in any of the sources (Bundler::GemNotFound)
Does anyone have any experience getting Tower to run automatic migrations on git pull?