如何通过Shopware 6中的控制台启用维护模式6

发布于 2025-01-21 03:07:43 字数 60 浏览 3 评论 0原文

我想使用更新脚本将Shopware 6实例设置为维护模式。 有什么方法可以使用垃圾箱/控制台启用维护模式?

i would like to set my Shopware 6 instance to maintenance mode using my update script.
Is there any way to enable the maintenance mode using the bin/console?

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

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

发布评论

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

评论(1

暖阳 2025-01-28 03:07:43

您可以使用 --all 标志为特定销售渠道启用维护模式

bin/console sales-channel:maintenance:enable salesChannelId

,也可以使用 --all 标志为所有销售渠道启用维护模式,

bin/console sales-channel:maintenance:enable --all

禁用效果相同。

You can enable the maintenance mode for a specific sales channel with

bin/console sales-channel:maintenance:enable salesChannelId

Or you can enable it for all sales channels with the --all flag

bin/console sales-channel:maintenance:enable --all

Works the same for disabling.

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