You should have homebrew version 0.9 or newer.
brew install nginx
brew install mysql
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
brew tap josegonzalez/homebrew-php
brew install php --with-mysql --with-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
Change the root-path in nginx.conf
Procfile
app
<webapp goes here>
nginx.conf
tmp
nginx
logs
access.log
error.log
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]