Skip to content

Instantly share code, notes, and snippets.

@brenthall
Created July 3, 2012 05:21
Show Gist options
  • Save brenthall/3037845 to your computer and use it in GitHub Desktop.
Save brenthall/3037845 to your computer and use it in GitHub Desktop.
Workstation Setup
brew install imagemagik
brew install nginx
sudo cp -r /Volumes/Development/config/nginx/* /usr/local/etc/nginx/*
# nginx will not run on port 80 by default
sudo cp /Volumes/Development/config/LaunchDaemons/org.nginx.nginx.plist /Library/LaunchDaemons/org.nginx.nginx.plist
# dealing with different versions of grails
cd /usr/local
brew versions grails
# select version
git checkout 590ae42 /usr/local/Library/Formula/grails.rb
brew install grails
# switch version
brew switch grails 1.3.3
grails install-plugin http://groovypptest.googlecode.com/files/grails-groovy-plus-plus-0.4.116.zip
wget http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz && gunzip GeoLiteCity.dat.gz && sudo mkdir /usr/local/share/geoip/ && sudo mv GeoLiteCity.dat /usr/local/share/geoip/
sudo cp /Volumes/Development/config/HelloMedical-config.groovy ~/HelloMedical-config.groovy
# mongo
brew install mongodb
# automatically load on login
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mongodb/2.0.6-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
# load data
mongorestore -d pmc /Volumes/Development/backups/mongo/mongo_dbs_dump/pmc && mongorestore -d hmapp /Volumes/Development/backups/mongo/mongo_dbs_dump/hmapp
# memcached
brew install memcached
cp /usr/local/Cellar/memcached/1.4.13/homebrew.mxcl.memcached.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist
# dns resolution of .local
brew install dnsmasq
cp /usr/local/Cellar/dnsmasq/2.61/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
sudo cp /usr/local/Cellar/dnsmasq/2.61/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
sudo cp /Volumes/Development/config/dnsmasq/dnsmasq.conf /usr/local/etc/dnsmasq.conf
# create /home/hellomedical
sudo cp /Volumes/Development/config/auto_master /etc/auto_master
restart computer
mkdir /home/hellomedical
rsync -avz --progress /Volumes/Development/hellomedical/ /home/hellomedical/
# activemq
brew install apache-activemq
# install mysql from dmg
## restore data
gunzip -c /Volumes/Development/backups/mysql/csprod_2012-06-23.sql.gz | /usr/local/mysql/bin/mysql -u root hellomedical
activemq start
grails run-app
# add to path - PATH=$PATH:/usr/local:/usr/local/sbin:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment