ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

NSM Config File and Upload paths based on environment (relative paths not an option)

June 11, 2012 7:30pm

Subscribe [1]
  • #1 / Jun 11, 2012 7:30pm

    Doug E

    98 posts

    I’m using the NSM bootstrap method to work on my local/dev/live servers. It works pretty much as I’d like it to with one catch. Upload paths.

    Assets (the P&T add-on) does not like relative server paths. I have to use absolute server paths in the CP settings.

    I can get the NSM bootstrap file to configure my upload directories, however it does so without considering the environment. I can’t figure out how to make them conditional on environment. It’s probably pretty easy using php, but once again I’m reminded how I really need to learn php better.

    Is this even possible? If so, how?

  • #2 / Jun 11, 2012 7:53pm

    Doug E

    98 posts

    Turns out $config[‘assets_cp_path’] = “./”; in the config file will allow Assets to work with relative paths.

    Still curious to know if environment relative settings are possible for uploads.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases