chore: set custom GEM_HOME due to default one cannot access without sudo

This commit is contained in:
CMK 2022-07-15 13:32:02 +08:00
parent af083cd013
commit 100d189e8e
1 changed files with 7 additions and 1 deletions

View File

@ -16,8 +16,14 @@ echo $PWD
brew install ruby
ruby --version
# workaround default installation location cannot access without sudo problem
echo 'export GEM_HOME=$HOME/gems' >>~/.bash_profile
echo 'export PATH=$HOME/gems/bin:$PATH' >>~/.bash_profile
export GEM_HOME=$HOME/gems
export PATH="$GEM_HOME/bin:$PATH"
# install bundle gem
gem install bundler
gem install bundler --install-dir $GEM_HOME
# setup gems
bundle install