Sha256: 08394ce6042370d2e9fe1a320531837cf818b8b430a064ebd7eb15f0169a0590
Contents?: true
Size: 930 Bytes
Versions: 4
Compression:
Stored size: 930 Bytes
Contents
#!/usr/bin/env sh # Run this script immediately after cloning the codebase. # Make sure Bundler is installed if [ "$(gem query -i -n bundler)" = "false" ]; then echo "Installing Bundler..." gem install bundler fi # Set up Ruby dependencies via Bundler echo "Installing Dependencies..." bundle install # Rename database & and making first commit DEV_DB_NAME="${PWD##*/}_development" sed -i.bak "s/venice_development/${DEV_DB_NAME}/g" config/mongoid.yml rm config/mongoid.yml.bak # Seed data rake db:seed # Remove Git remote if it's still the venice repo (after cloning) if [ "$(git config --get remote.origin.url)" = "git@github.com:alexkravets/venice.git" ]; then git remote rename origin venice echo "What is your repo url? Enter URL or leave blank" read url if [ -z "$url" ]; then git remote add origin "$url" git add config/mongoid.yml git commit -am "Update development database name." fi fi
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
venice-chr-0.1.4 | bin/setup |
venice-chr-0.1.3 | bin/setup |
venice-chr-0.1.2 | bin/setup |
venice-chr-0.1.1 | bin/setup |