aboutsummaryrefslogtreecommitdiffstats
path: root/script/setup
blob: 2fa783d29904b51e53cb09ad3d7614d0a549ca89 (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 --no-ri --no-rdoc
  bundle config build.sqlite3 --with-sqlite3-dir=/usr/local
fi

bundle install --without=production

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