Environmentall:EE Friendly
Environmentall:EE Friendly
Black Belt Designs' Environmentall:EE Friendly allows you to set up your development site via WAMP or MAMP as well as your production site and manage your ExpressionEngine config settings for multiple environments easily via the Control Panel.
Get It Now
Or check it out here:
Environmentall:EE Friendly simplifies managing your multi-environment config file. While there are various ways out there to do this, they all require you to manually configure your system config.php
file.
Many of the questions we see are regarding managing multiple environments and how to modify or edit the config.php
file in order to better ease the workflow.
For some developers this is an easy process. Many have their own methods already established.
For others, this is confusing and/or problematic.
Using Environmentall:EE Friendly makes this extremely easy. Manage all of your variables from the control panel.
As an added BONUS, if you go to your Menu Manager via Settings->Menu Manager
and either create your own or edit the Default
menu set, you can add Environmentall:EE Friendly
to your main CP so you always know which environment you are working in.
One caveat is that if you manually configure or set your variables in the form, they must be correct or you will not be connected.
(Same as with your config.php file itself)
Requirements
- ExpressionEngine 3+ (EE3+)
- Windows - WampServer or
- Mac - MAMP or MAMP PRO
Installation
Installing Environmentall:EE Friendly is easy. Simply load the environmentallee_friendly
folder to your user addons system folder and load the themes folder to the user themes folder on the public_html
location.
Usage
Once installed, you simply enter the information as you would for your Development and Production environments for each environment respectively.
Development
Click on Development
in the left sidebar to enter or edit your development environment settings.
You will be able to manage two groups of settings for your environment.
The top section will allow you to specify your development TLD, your development {base_path}
, and your development {base_url}
.
To make this easier to manage, we have added a Use Current
button which will grab your default settings you have already set for the current environment you are in.
The bottom section will allow you to manage your database information for your development environment.
Like the top section, we have added a Use Current
button which will grab your default settings you have already set for the current environment you are in.
Production
Click on Production
in the left sidebar to enter or edit your production environment settings.
You will be able to manage two groups of settings for your environment.
The top section will allow you to specify your production TLD, your production {base_path}
, and your production {base_url}
.
To make this easier to manage, we have added a Use Current
button which will grab your default settings you have already set for the current environment you are in.
The bottom section will allow you to manage your database information for your production environment.
Like the top section, we have added a Use Current
button which will grab your default settings you have already set for the current environment you are in.
Basic
A standard usage of Environmentall:EE Friendly would follow this flow:
- Build development website in WAMP/MAMP normally using the domain
your-domain.dev
- Install Environmentall:EE Friendly
- Click on
Development
- Click on
Use Current
on both top and bottom sections - Click
Save Settings
- Click on
Production
- Set your
TLD
for the production server/live site - Set your
Path
for the production website the same as you would yourDefault base path
inSettings->URL and Path Settings
in the EE CP - Set your
URL
for the production website the same as you would yourDefault base URL
inSettings->URL and Path Settings
in the EE CP - Set your database information the same as you would for a typical install using your production
Database Name
,Username
,Password
, etc... - Click
Save Settings
Once you click Save Settings
, Environmentall:EE Friendly adds the variables and logic needed to test against your fields to determine which database and files to load to your main config.php
file for you. No need to edit or manage this file again. For safety reasons, a backup of that file is created in the user/config/
folder so if anything were to happen you can simply delete the new file and rename the backup.
Save Settings
also triggers Environmentall:EE Friendly to build a development_config.php
and a production_config.php
file to overwrite the main config.php
file variables depending on where you are.
- Be the first to review Environmentall:EE Friendly.