This repository was archived by the owner on Mar 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 8
8
cd " $( dirname " $0 " ) /.."
9
9
10
10
if [ -f " Brewfile" ] && [ " $( uname -s) " = " Darwin" ]; then
11
- echo " ==> Installing Homebrew dependencies…"
12
- brew update
13
- brew tap homebrew/bundle 2> /dev/null
14
11
brew bundle check 2>&1 > /dev/null || {
12
+ echo " ==> Installing Homebrew dependencies…"
15
13
brew bundle
16
14
}
17
15
fi
18
16
19
17
if [ -f " .ruby-version" ] && [ -z " $( rbenv version-name 2> /dev/null) " ]; then
20
18
echo " ==> Installing Ruby…"
21
- rbenv install
19
+ rbenv install --skip-existing
22
20
which bundle 2>&1 > /dev/null || {
23
21
gem install bundler
24
22
rbenv rehash
Original file line number Diff line number Diff line change 7
7
8
8
cd " $( dirname " $0 " ) /.."
9
9
10
+ if [ -f " Brewfile" ] && [ " $( uname -s) " = " Darwin" ]; then
11
+ brew update
12
+ brew tap homebrew/bundle 2> /dev/null
13
+ fi
14
+
10
15
script/bootstrap
11
16
12
17
echo " ===> Setting up DB..."
13
18
# reset database to a fresh state.
14
- bin/rake db:reset
19
+ bin/rake db:create db: reset
15
20
16
21
if [ -z " $RAILS_ENV " ] && [ -z " $RACK_ENV " ]; then
17
22
# Only things for a development environment will run inside here
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ script/bootstrap
10
10
11
11
echo " ==> Updating db..."
12
12
# run all database migrations to ensure everything is up to date.
13
- bin/rake db:create db: migrate
13
+ bin/rake db:migrate
You can’t perform that action at this time.
0 commit comments