Local Development Environments

I recently purchased a new computer and decided it was a good time to start from scratch on my local development and live production environments as well as my portfolio website. I wrote the following script to setup my local development environment from scratch:

# Install Homebrew & Cask
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
brew tap caskroom/cask

# Install Essential OSX Applications
brew cask install –force atom github-desktop sequel-pro textwrangler docker

# Change shell to Zsh & Use Oh-My-Zsh
brew install zsh zsh-completions
sudo dscl . -create /Users/$USER UserShell /usr/local/bin/zsh
zsh –version
chsh -s $(which zsh)
sh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”

That’s it…seems simple, right? That’s the point – the less development dependencies, the better. Dockerizing all your WordPress and Magento projects will be the next blog post.

Essentially, Docker becomes your “dev” environment. Once you successfully script out your architecture and deployment strategy, just use ‘docker-compose up’ to bring them alive on your computer or on your favorite VPS using docker-machine.

Need help with anything? Please contact me here 🙂