项目作者: abelbm

项目描述 :
Magento 2 module to disable frontend
高级语言: PHP
项目地址: git://github.com/abelbm/magento2-disable-frontend.git
创建时间: 2017-05-20T01:16:14Z
项目社区:https://github.com/abelbm/magento2-disable-frontend

开源协议:GNU General Public License v3.0

下载


Disable Frontend in Magento 2

Disable the frontend in Magento 2 for using only the Admin and the API routes.

1 - Installation Disable Frontend

Manual Installation

Install Disable Frontend for Magento2

  • Download the extension
  • Unzip the file
  • Create a folder {Magento root}/app/code/Abelbm/DisableFrontend
  • Copy the content from the unzip folder
Using Composer
  1. composer require abelbm/magento2-disablefrontend

2 - Enable Disable Frontend

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

    3 - Change the frontend redirect

    Stores > Configuration > Advanced > Admin > Disable Frontend