Last active
December 27, 2015 18:59
-
-
Save lsaffie/7373857 to your computer and use it in GitHub Desktop.
hs-setup
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 characters
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 [email protected]:homestars/homestars_runner.git | |
[ ! -f /vagrant/homestars-crm ] && git clone [email protected]:homestars/homestars-crm.git | |
[ ! -f /vagrant/homestars-mobile-server ] && git clone [email protected]:homestars/homestars-mobile-server.git | |
[ ! -f /vagrant/homestars-www ] && git clone [email protected]: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