catgento / magento-2-environments
Show Environment Bar in Backoffice
Installs: 102
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: >=100.0.0
- magento/module-backend: >=100.0.0
This package is auto-updated.
Last update: 2025-01-04 16:21:01 UTC
README
Main Functionalities
This module shows an environment bar in the backoffice depending on the environment URL. It is useful when you want to have a visual warning telling you which environment you are in: Production, Staging, Development or Other.
- You can choose the color you want each environment to display
Installation
Type 1: Composer
- Install the module composer by running
composer require catgento/magento-2-environments
- enable the module by running
php bin/magento module:enable Catgento_Environments
- apply database updates by running
php bin/magento setup:upgrade
- Flush the cache by running
php bin/magento cache:flush
Type 2: Zip file
- Unzip the zip file in
app/code/Catgento
- Enable the module by running
php bin/magento module:enable Catgento_Environments
- Apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
Configuration
Environment bar can be enabled in Stores » Configuration » Advanced » System, Environment Bar tab.
You can set the environment urls and the colors for each environment. In case the 'current environmnet' is not in the environments list, the bar will display the current url with a grey background color.