使用 dokku 时从 URL in Laravel 中删除 /public
Remove /public from URL in Laravel when using dokku
我正在使用 dokku 部署一个 laravel 应用程序,它完美地部署了该应用程序。唯一的问题是著名的 /public
问题。我需要以某种方式更改容器内的 nginx 配置,以使其指向正确的目录。我找到了 this instruction about nginx configuration in dokku,但它没有提供有关更改应用程序根目录的信息。
我需要制作一个 Procfile
包含:
web: vendor/bin/heroku-php-nginx public/
我正在使用 dokku 部署一个 laravel 应用程序,它完美地部署了该应用程序。唯一的问题是著名的 /public
问题。我需要以某种方式更改容器内的 nginx 配置,以使其指向正确的目录。我找到了 this instruction about nginx configuration in dokku,但它没有提供有关更改应用程序根目录的信息。
我需要制作一个 Procfile
包含:
web: vendor/bin/heroku-php-nginx public/