Commit 463ea5b

mo khan <mo@mokhan.ca>
2014-11-15 04:35:54
specify ruby version and add setup.
1 parent edf74f0
Changed files (2)
bin/setup
@@ -0,0 +1,32 @@
+#!/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
+bundle install
+
+# Set up configurable environment variables
+if [ ! -f .env ]; then
+  cp .env.example .env
+fi
+
+# Print warning if Foreman is not installed
+if ! command -v foreman &>/dev/null; then
+  echo "foreman is not installed."
+  echo "See https://github.com/ddollar/foreman for install instructions."
+fi
+
+# Set up staging and production apps.
+if heroku join --app urkel-staging &> /dev/null; then
+  git remote add staging git@heroku.com:urkel-staging.git || true
+  echo 'You are a collaborator on the "urkel-staging" Heroku app'
+fi
+
+if heroku join --app urkel-production &> /dev/null; then
+  git remote add production git@heroku.com:urkel-production.git || true
+  echo 'You are a collaborator on the "urkel-production" Heroku app'
+fi
Gemfile
@@ -1,5 +1,6 @@
 source 'https://rubygems.org'
 
+ruby '2.1.4'
 # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
 gem 'rails'