diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 59d0565..5ad7872 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,8 @@ - + + @@ -44,7 +45,7 @@ - + @@ -54,6 +55,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -87,16 +108,6 @@ - - - - - - - - - - @@ -121,23 +132,6 @@ - - - - - - - - - - - - - - - - - @@ -181,6 +175,8 @@ @@ -417,12 +413,12 @@ - + - @@ -489,29 +485,6 @@ - - - - - - - - - - - - - - - - - - - - - - - @@ -900,5 +873,21 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Procfile b/Procfile index bb1343e..4e2eaa0 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: vendor/heroku/heroku-buildpack-php/bin/heroku-php-nginx web/ +web: vendor/heroku/heroku-buildpack-php/bin/heroku-php-nginx -C app_nginx.conf web/ diff --git a/app_nginx.conf b/app_nginx.conf new file mode 100644 index 0000000..323fa7f --- /dev/null +++ b/app_nginx.conf @@ -0,0 +1,14 @@ +location / { + # try to serve file directly, fallback to rewrite + try_files $uri @rewriteapp; +} + +location @rewriteapp { + # rewrite all to app.php + rewrite ^(.*)$ /index.php/$1 last; +} + +location ~ ^/(index|app_dev|config)\.php(/|$) { + try_files @heroku-fcgi @heroku-fcgi; + internal; +} \ No newline at end of file