Extension, Plugin

Archived
Forum
(read-only)

Minimee

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From John D. Wells

     

Minimee and Focus Lab Master Config

Support Request

interface
interface

Hi

I have most of my sites set up with Focus Lab’s Master Config.

Is it possible to integrate minimee with the master config so that for instance local environment has minimee disabled and production is enabled?

Cheers

John D Wells
# 1
Developer
John D Wells

Hi interface,

Minimee can definitely be integrated with FocusLab’s master config - it’s what I use on all of my setups.

For Minimee 1.x, you’d put something like this in your config.master.php:

$env_config['minimee_cache_path''/path/to/your/cache';
$env_config['minimee_cache_url''http://website.com/cache'

And then disable it locally by placing this in your config.local.php:

$env_config['minimee_disable''y'

You can see a complete list of settings available by visiting the User Guide (http://johndwells.com/software/minimee)

If you’re trying out Minimee v2 (available on github https://github.com/johndwells/Minimee/tree/version2), the setup is slightly different, since I’m storing minimee’s config as an associated array.

So config.master.php would look like:

$env_config['minimee'=> array(
 
'cache_path' => '/path/to/your/cache',
 
'cache_url' => 'http://website.com/cache'
); 

And for config.local.php, be careful not to overwrite the rest of the array to disable, so:

$env_config['minimee']['disable''y'

The above is hurried and untested, but let me know if you have trouble!

Cheers,
John

 

interface
# 2
interface

Cheers John

Worked a treat.

John D Wells
# 3
Developer
John D Wells

Cool!