|
1 | | -RUBY_VERSION="$(cat .ruby-version | tr -d '\n')" |
2 | | - |
3 | 1 | # copy the file only if it doesn't already exist |
4 | 2 | echo "*** Creating initial .env and vscode settings, if needed" |
5 | 3 | cp -n .devcontainer/.env.codespaces .env |
6 | 4 | mkdir -p .vscode && cp -n .devcontainer/launch.json.codespaces .vscode/launch.json |
7 | 5 |
|
8 | | -# If the project's required ruby version changes from 3.2.2, this command |
9 | | -# will download and compile the correct version, but it will take a long time. |
10 | | -# TODO: Why do we install this RVM shim when we use rbenv later on??? |
11 | | -# if [ "$RUBY_VERSION" != "3.2.2" ]; then |
12 | | -# echo "*** Installing Ruby $RUBY_VERSION (this may take a while)" |
13 | | -# rvm install $RUBY_VERSION |
14 | | -# rvm use $RUBY_VERSION |
15 | | -# echo "Ruby $RUBY_VERSION installed" |
16 | | -# fi |
17 | | - |
18 | 6 | echo "*** Setting up node" |
19 | | -nvm install node |
| 7 | +nvm install node & |
20 | 8 |
|
21 | 9 | echo "*** Setting up ruby environment" |
22 | | -rbenv init bash |
23 | | -rbenv init fish |
24 | | -rbenv init zsh |
| 10 | +rbenv init bash & |
| 11 | +rbenv init fish & |
| 12 | +rbenv init zsh & |
25 | 13 |
|
26 | 14 | # echo "*** Forcing platform version of nokogiri" |
27 | 15 | # gem install nokogiri -v 1.18.1 --platform=ruby -- --use-system-libraries |
28 | 16 |
|
| 17 | +# If the project's required ruby version (specified in .ruby-version) |
| 18 | +# changes from 3.4.3, this command will download and compile the correct |
| 19 | +# version, but it will take a long time. |
29 | 20 | echo "*** Installing rbenv-able Ruby ***" |
30 | | -rbenv install --skip-existing |
| 21 | +rbenv install --skip-existing & |
| 22 | + |
| 23 | +wait |
31 | 24 |
|
32 | 25 | echo "*** Running project bin/setup" |
33 | 26 | bin/setup |
0 commit comments