如何刷新 Laravel 的 Forge 中的 .ENV 文件?

How to refresh .ENV file in Laravel's Forge?

我更改了我的 .ENV 文件,但新更改在 Laravel 的 Forge 中没有生效。我如何告诉 Forge re-fetch/re-fresh 它?

我已经重新启动了所有服务。没有不同。仍在使用以前 ENV 的旧数据。我已将 Forge 设置为使用 BitBucket 存储库和 AWS。

.env 文件未缓存,但配置缓存。您可以尝试 运行 php artisan config:clear 删除配置缓存文件。

您可以查看 了解更多信息。