File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Helpers
2+ tap "github/bootstrap"
3+
4+ # Ruby
5+ brew "openssl"
6+ brew "autoconf"
7+ brew "rbenv"
8+ brew "ruby-build"
9+
10+ # Node
11+ brew "nodenv"
12+ brew "node-build"
Original file line number Diff line number Diff line change 11#! /bin/sh
2-
32set -e
4- export CC=gcc
3+ cd " $( dirname " $0 " ) /.. "
54
6- command -v bundle > /dev/null 2>&1 || { echo >&2 " Bundler required but not found: gem install bundler" ; exit 1; }
5+ if [ " $( uname -s) " = " Darwin" ] && command -v brew > /dev/null 2>&1 ; then
6+ echo " ==> Installing Homebrew dependencies…"
7+ brew update > /dev/null
8+ brew bundle check & > /dev/null || brew bundle
79
8- echo " ==> Installing gem dependencies…"
10+ brew bootstrap-rbenv-ruby
11+ brew bootstrap-nodenv-node
12+ fi
913
14+ if ! command -v bundle > /dev/null 2>&1 ; then
15+ echo " Bundler required but not found: gem install bundler" >&2
16+ exit 1
17+ fi
18+
19+ echo " ==> Installing gem dependencies…"
1020if [ " $RACK_ENV " = " production" ]; then
1121 export NOKOGIRI_USE_SYSTEM_LIBRARIES=1
1222 export BUNDLE_JOBS=4
1323 bundle install --without development staging test benchmark --path vendor/cache --local --deployment
1424else
15- bundle check --path vendor/cache 2>&1 || {
25+ bundle check --path vendor/cache 2>&1 || \
1626 bundle install --path vendor/cache
17- }
1827fi
1928
2029echo " ==> Installing npm dependencies…"
21-
2230if [ " $RACK_ENV " = " production" ]; then
2331 npm install --production
2432else
You can’t perform that action at this time.
0 commit comments