breaking the nginx conf for cake

This commit is contained in:
Dan Buch
2011-01-03 10:04:15 -05:00
parent 8326524a99
commit b781c8ec54
2 changed files with 51 additions and 22 deletions

View File

@@ -1,6 +1,7 @@
ROOT ?= $(PWD)
HTTP_PORT ?= 49438
HTTP_HOST ?= localhost
PHP_FCGI_PORT ?= 49439
@@ -13,14 +14,19 @@ serve-php: php.ini
nginx.conf: nginx.conf.in
chmod 644 $@ ;
cat $< | \
sed -e 's@__ROOT__@$(ROOT)@g' \
-e 's@__HTTP_PORT__@$(HTTP_PORT)@g' \
-e 's@__PHP_FCGI_PORT__@$(PHP_FCGI_PORT)@g' > $@
-e 's@__HTTP_HOST__@$(HTTP_HOST)@g' \
-e 's@__PHP_FCGI_PORT__@$(PHP_FCGI_PORT)@g' > $@ ;
chmod 444 $@
php.ini: php.ini.in
cat $< | sed -e 's@__ROOT__@$(ROOT)@g' > $@
chmod 644 $@ ;
cat $< | sed -e 's@__ROOT__@$(ROOT)@g' > $@ ;
chmod 444 $@
.PHONY: serve