Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 663 Bytes
#!/bin/sh
# Set up Rails app. Run this script immediately after cloning the codebase.
# https://github.com/thoughtbot/guides/tree/master/protocol
# Exit if any subcommand fails
set -e
# Set up Ruby dependencies via Bundler
gem install bundler --conservative
bundle check || bundle install
# Set up database and add any development seed data
bin/rails dev:prime
if [ ! -d .git/safe ] && echo $PATH | grep .git/safe > /dev/null; then
echo "-----------------------------------------------------------------------"
echo
echo "-> When you trust this repo, remember to run: mkdir -p .git/safe"
echo
fi
# Only if this isn't CI
# if [ -z "$CI" ]; then
# fi