Environmentall:EE Friendly

Environmentall:EE Friendly allows you to set up a local site via WAMP or MAMP and manage your config data easily via the Control Panel.

Get It Now

 

Compatibility: ExpressionEngine 3,.

 

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

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:

  1. Build development website in WAMP/MAMP normally using the domain your-domain.dev
  2. Install Environmentall:EE Friendly
  3. Click on Development
  4. Click on Use Current on both top and bottom sections
  5. Click Save Settings
  6. Click on Production
  7. Set your TLD for the production server/live site
  8. Set your Path for the production website the same as you would your Default base path in Settings->URL and Path Settings in the EE CP
  9. Set your URL for the production website the same as you would your Default base URL in Settings->URL and Path Settings in the EE CP
  10. Set your database information the same as you would for a typical install using your production Database NameUsernamePassword, etc...
  11. 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.