Created
November 22, 2017 03:09
Revisions
-
r00k created this gist
Nov 22, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ #!/bin/sh # Set up Rails app. Run this script immediately after cloning the codebase. # Exit if any subcommand fails set -e # Copy over configs if ! [ -f .env ]; then cp .sample.env .env fi # Set up Ruby dependencies via Bundler gem install bundler --conservative bundle check || bundle install # Set up database bin/rake db:setup db:test:prepare # Only if this isn't CI if [ -z "$CI" ]; then # Set up development seed data bin/rake dev:bootstrap # Add Heroku remotes git remote add staging https://git.heroku.com/this-app-staging.git || true git remote add production https://git.heroku.com/this-app-production.git || true # Join the apps heroku join --app this-app-staging || true heroku join --app this-app-production || true fi