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.

Script to automate renaming of upload paths during deployments

April 10, 2011 7:14pm

Subscribe [3]
  • #1 / Apr 10, 2011 7:14pm

    webartisan

    5 posts

    Has anyone found a good way to script the process of renaming the file upload paths in the DB when moving from local DB to production?

    It’s really annoying that this isn’t something you can override in the config file.


    It seems like the deployment process is a tricky process.

  • #2 / Apr 10, 2011 10:26pm

    Rob Allen

    3114 posts

    Look no further - http://devot-ee.com/add-ons/deeploy-helper/

    I believe there may be one or two more similar addons, but that’s the one I use 😊

  • #3 / Apr 10, 2011 10:32pm

    webartisan

    5 posts

    This doesn’t answer the question at all. I’m looking for an automated solution to this problem. Moving all the configurations to one page may be helpful but it doesn’t solve the issue that you still have to modify upload paths whenever you do a deployment.

  • #4 / Apr 11, 2011 2:49pm

    Will Bolton

    30 posts

    Have you tried relative paths? Assuming you have the same directory structure across your different environments then the file upload paths will be the same.

    Example:

    Server Path to Upload Directory - ../uploads/images/
    URL of Upload Directory - /uploads/images/

  • #5 / Apr 11, 2011 3:25pm

    webartisan

    5 posts

    I tried this. The relative URL seems to work but the relative path doesn’t which seems strange to me.

  • #6 / Jun 23, 2011 4:31pm

    webdev7

    16 posts

    A bit late to the commentary, but I have to admit I don’t understand why this can’t have an override in config.php like so many other paths, which could utilize the $_SERVER[‘SERVER_NAME’] to automate this. Can anyone at explain why this can’t be done? Feature request?

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

ExpressionEngine News!

#eecms, #events, #releases