ruby on rails - How to use specific bundler version inside bash shell script -
i'm running bundle install , rake migrations inside bash script, bundle version used not 1 need. how can make use different bundle version
#!/bin/bash function run_setup { echo "running setup , db migrations" cd $cwd/apps/rails_app gem install bundler -v 1.3 bundle -v # shows version 1.15 bundle install # errors out rake db:migrate }
when run bash function above, bash uses bundle version 1.15. need use 1.3 version installing before calling bundle install. thanks.
you can pass version bundler command this:
bundle _x.x.x_ install
so function this:
#!/bin/bash function run_setup { echo "running setup , db migrations" cd $cwd/apps/rails_app gem install bundler -v 1.3 bundle _1.3_ install rake db:migrate }
Comments
Post a Comment