Make Heroku nginx deployment work
This commit is contained in:
2
Procfile
2
Procfile
@@ -1 +1 @@
|
||||
web: vendor/bin/heroku-php-nginx public/
|
||||
web: vendor/bin/heroku-php-nginx -C nginx.conf public
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user