aboutsummaryrefslogtreecommitdiffstats
path: root/script/setup
blob: 9ddd50be26b31e6a9b1cb8df0d0ce82ea55d0147 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
ruby_status=$(rbenv version |& awk '{ printf $4 " " $5 " " $6 }'|sed -r 's/[ ]+$//')
echo \"${ruby_status}\"
if [[ "${ruby_status}" == "is not installed" ]]
then
  rbenv install $(cat .ruby-version)
  gem install bundler
  bundle config build.sqlite3 --with-sqlite3-dir=/usr/local
fi

bundle install --without=production

if [ $? ]; then
    bundle exec rake dev:setup
fi