-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrbenv.sh
29 lines (23 loc) · 852 Bytes
/
rbenv.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# rbenvのセットアップを実行する
git clone https://github.com/rbenv/rbenv-default-gems.git "$(rbenv root)/plugins/rbenv-default-gems"
rbenv install 3.1.6
rbenv install 3.2.4
rbenv install 3.3.4
rbenv global 3.1.6
gem update --system
gem update bundler
gem install pg -- --with-pg-config="$(brew --prefix)/opt/postgresql@16/bin/pg_config"
rbenv global 3.2.4
gem update --system
gem update bundler
gem install pg -- --with-pg-config="$(brew --prefix)/opt/postgresql@16/bin/pg_config"
rbenv global 3.3.4
gem update --system
gem update bundler
gem install pg -- --with-pg-config="$(brew --prefix)/opt/postgresql@16/bin/pg_config"
rbenv global system
bundle config frozen true
bundle config jobs $(sysctl -n hw.ncpu)
bundle config retry 2
bundle config build.pg --with-pg-config=$(brew --prefix)/opt/postgresql@16/bin/pg_config