Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Setup script #76

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions script/setup_growstuff.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
# vim: sw=2

if [ $# -lt 1 ]; then
echo "Usage: $0 [GitHub username]"
exit 2;
fi

curl -L https://get.rvm.io | bash -s stable
. ~/.rvm/scripts/rvm # uses bashisms
rvm install 1.9.3-p194
rvm use 1.9.3-p194
rvm --default 1.9.3-p194
# rvm docs generate # not sure we actually need this -MRG
git clone https://github.com/$1/growstuff.git
cd growstuff/
git remote add upstream https://github.com/Growstuff/growstuff.git
rvm use 1.9.3-p194
rvm gemset create growstuffdev
rvm gemset use growstuffdev
gem install bundler
git checkout dev
bundle install
rake db:create
rake db:migrate
rake db:seed
rake db:test:prepare
rake && echo -e "Looks good! Now run\n\n. ~/.rvm/scripts/rvm\ncd growstuff\n"