bin/setup
#!/usr/bin/env sh
# Set up Rails app. Run this script immediately after cloning the codebase.
# Exit if any subcommand fails
set -e
# Set up Ruby dependencies via Bundler
bundle install
# Set up the database
bundle exec rake db:setup
# Set up configurable environment variables
if [ ! -f .env ]; then
cp .sample.env .env
fi
# Pick a port for Foreman
echo "port: 3000" > .foreman
# Set up deploys
git remote add production git@heroku.com:dayview.git