# Install packages You should have homebrew version 0.9 or newer. ## Install nginx brew install nginx ## Install mysql brew install mysql unset TMPDIR mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp ## Install php brew tap josegonzalez/homebrew-php brew install php --with-mysql --with-fpm # Tweak config ## php-fpm To run php-fpm in the foreground set `deamonize = no` in the `php-fpm.conf`. Should be located in `/usr/local/Cellar/php/5.3.10/etc` ## nginx Change the root-path in `nginx.conf` # Folder structure Procfile app nginx.conf tmp nginx logs access.log error.log # Setup script Use the `setup.rb` script to quickly prepare a new project. It creates the configuration files and skeleton folder structure. You can pass one parameter to the script, the name of the folder to use. Leave it empty to use the current directory. **Run it directly from this gist:** ruby -e "$(curl -fsSL https://raw.github.com/gist/2585743/d4d1fdb431724675ec2c6894a083c8af3872bb6f/setup.rb)" [optional folder name]