I am running expression engine on MSM at the moment. I have got the deployment and ebvironments working properly, my only issues is that there are literally about 30 different file upload paths all together on the whole site. The site environments are:
- Local
- Staging
- Live
The idea would be that I have the upload paths set for the different environments but this is not working at all on the config_bootstrap.php file in this area:
if ('local' === NSM_ENV) {
// Environment DB configuration
$env_db_config = array(
'hostname' => 'localhost',
'username' => 'root',
'password' => 'root',
'database' => 'ngrto-stage2',
);
// Environment global vars
// These will be available in youre templates
// 'global:' is not required, it's just a naming convention we use @Newism
// Example: 'global:cm_subscriber_list_slug' will be available in templates as {global:cm_subscriber_list_slug}
// Overrides anything in $default_global_vars
$env_global_vars = array(
'global:cm_subscriber_list_slug' => ''
);
// Environment config variables
// Overrides anything in $env_config
$env_config = array(
'upload_preferences' => array(
1 => array( // ID of upload destination
'name' => 'Staging Image Uploads', // Display name in control panel
'server_path' => '/home/user/example.com/staging/images/uploads/', // Server path to upload directory
'url' => 'http://staging.example.com/images/uploads/' // URL of upload directory
)
)
);
}
Can anyone think why this would not work and a better solution to it?
Thanks,