1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-22 14:24:16 +01:00

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

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