Skip to content

Instantly share code, notes, and snippets.

@lsaffie
Last active December 27, 2015 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsaffie/7373857 to your computer and use it in GitHub Desktop.
Save lsaffie/7373857 to your computer and use it in GitHub Desktop.
hs-setup
echo "===== enable eth1 networking bug ===="
sudo echo '' > /etc/udev/rules.d/70-persistent-net.rules
mkdir ~/.bundle
echo "BUNDLE_LOCAL__HOMESTARS_RUNNER: /vagrant/homestars_runner" > ~/.bundle/config
cd /vagrant
[ ! -f /vagrant/homestars_runner ] && git clone git@github.com:homestars/homestars_runner.git
[ ! -f /vagrant/homestars-crm ] && git clone git@github.com:homestars/homestars-crm.git
[ ! -f /vagrant/homestars-mobile-server ] && git clone git@github.com:homestars/homestars-mobile-server.git
[ ! -f /vagrant/homestars-www ] && git clone git@github.com:homestars/homestars-www.git
cd homestars-crm && gem update --system 1.8.25 && gem install bundler &&bundle update --source homestars_runner && cd ..
cd homestars-mobile-server && gem update --system 2.0.7 && gem install bundler && bundle update --source homestars_runner && cd ..
cd homestars-www && gem update --system 1.8.25 && gem install bundler && bundle update --source homestars_runner && cd ..
#copy configs
cp /vagrant/homestars-crm/config/config.yml.example /vagrant/homestars-crm/config/config.yml
cp /vagrant/homestars-crm/config/database.yml.example /vagrant/homestars-crm/config/database.yml
cp /vagrant/homestars-www/config/config.yml.example /vagrant/homestars-www/config/config.yml
cp /vagrant/homestars-www/config/database.yml.example /vagrant/homestars-www/config/database.yml
cp /vagrant/homestars-mobile-server/config/config.yml.example /vagrant/homestars-mobile-server/config/config.yml
cp /vagrant/homestars-mobile-server/config/database.yml.example /vagrant/homestars-mobile-server/config/database.yml
#git changes
echo "append this to each or your projects .git/hooks/prepare-commit-msg"
#!/bin/bash
git branch | sed -n '/\* /s///p' >> $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment