简体   繁体   English

如果没有root用户访问权限,如何在Laravel中刷新.env文件?

[英]How can I refresh the .env file in Laravel if there's no root access?

I am on a shared hosting. 我在共享主机上。 I am not the developer but I just changed a value in the .env file but the change is not reflecting on the main site. 我不是开发人员,但只是更改了.env文件中的值,但更改未反映在主站点上。 I even tried by opening http://siteurl.com/clear-cache(it says cache cleared) but it didn't work. 我什至尝试通过打开http://siteurl.com/clear-cache (它说已清除缓存)来解决问题,但是没有用。 How can I refresh it without root access? 没有root访问权限,如何刷新它? I can hardcode the value for now as a temporary hack but I want to make it work via the .env file. 我可以暂时将值硬编码为临时破解,但我想通过.env文件使其起作用。

In order to clear cache of config in Laravel 5 为了清除Laravel 5中的配置缓存

php artisan config:clear
php artisan config:cache
php artisan cache:clear
php artisan route:cache
php artisan optimize

with those command you will clear all cache and go on 使用这些命令,您将清除所有缓存并继续

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM