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
Man this is great, thanks! Only one problem I've got:
php-fpmstill running in background after I stopped foreman. Do you know what could it be since I already setdaemonize = noinphp-fpm.conf?