Make Heroku nginx deployment work

This commit is contained in:
James Brooks
2015-02-21 14:34:09 +00:00
parent 4fee5125c7
commit 7d49a36353
2 changed files with 3 additions and 6 deletions

View File

@@ -1 +1 @@
web: vendor/bin/heroku-php-nginx public/
web: vendor/bin/heroku-php-nginx -C nginx.conf public

View File

@@ -1,11 +1,8 @@
location / {
index index.php;
try_files $uri $uri/ /index.php?$query_string;
}
if (!-d $request_filename) {
rewrite ^/(.+)/$ /$1 permanent;
}
location ~ /\.ht {
deny all;
}
}