#!/usr/bin/env 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 list bundler --installed > /dev/null || gem install bundler gem list foreman --installed > /dev/null || gem install foreman bundle install # Set up configurable environment variables if [ ! -f .env ]; then cp .env.sample .env fi # Set up database and add any development seed data bundle exec rake db:setup