abelbm/magento2-disablefrontend

在Magento 2中禁用前端。

安装数: 13,977

依赖者: 0

建议者: 0

安全: 0

星标: 35

关注者: 3

分支: 15

公开问题: 0

类型:magento2-module

1.1.1 2019-01-03 20:06 UTC

This package is auto-updated.

Last update: 2024-09-05 03:35:53 UTC


README

禁用Magento 2的前端,仅使用Admin和API路由。

1 - 安装禁用前端

手动安装

为Magento2安装禁用前端

  • 下载扩展
  • 解压文件
  • 在{Magento根目录}/app/code/Abelbm/DisableFrontend创建一个文件夹
  • 复制解压文件夹中的内容
使用Composer
composer require abelbm/magento2-disablefrontend

2 - 启用禁用前端

  • php bin/magento module:enable Abelbm_DisableFrontend
  • php bin/magento setup:upgrade
  • php bin/magento cache:flush
  • php bin/magento setup:di:compile

3 - 更改前端重定向

商店 > 配置 > 高级 > 管理员 > 禁用前端