找不到 Laravel8 存储文件

发布于 2025-01-11 19:18:33 字数 111 浏览 3 评论 0原文

php artisan storage:link

本地工作正常。 在没有启动 php artisanserve 的情况下部署后,它在存储中找不到文件。 符号链接已上线。

php artisan storage:link

local worked fine.
After deployment without start php artisan serve it doesnt find the files in storage.
Symlink is online.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

度的依靠╰つ 2025-01-18 19:18:34

如果您有权访问 ssh 或远程终端:

php artisan storage:link
php artisan config:clear

If you have access to ssh or to the remote terminal:

php artisan storage:link
php artisan config:clear
々眼睛长脚气 2025-01-18 19:18:33

好吧,如果我自己制作符号链接,效果很好。

使用
ln -s ../storage/app/public storage

而不是
php artisan 存储:链接

ok if I make symlink on my own it worked fine.

use
ln -s ../storage/app/public storage

instead of
php artisan storage:link

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文