getting cakephp set up with its own web server(s) and docroot

This commit is contained in:
Dan Buch
2011-01-02 23:58:42 -05:00
parent aaa61a737b
commit 4b0cfa88e7
756 changed files with 2844 additions and 4 deletions

26
web-cake/Makefile Normal file
View File

@@ -0,0 +1,26 @@
ROOT ?= $(PWD)
HTTP_PORT ?= 49438
PHP_FCGI_PORT ?= 49439
serve: nginx.conf
nginx -p $(ROOT)/ -c $(ROOT)/$<
serve-php: php.ini
php-cgi -c $< -b 127.0.0.1:$(PHP_FCGI_PORT)
nginx.conf: nginx.conf.in
cat $< | \
sed -e 's@__ROOT__@$(ROOT)@g' \
-e 's@__HTTP_PORT__@$(HTTP_PORT)@g' \
-e 's@__PHP_FCGI_PORT__@$(PHP_FCGI_PORT)@g' > $@
php.ini: php.ini.in
cat $< | sed -e 's@__ROOT__@$(ROOT)@g' > $@
.PHONY: serve