• Resolved wp_hela

    (@wp_hela)


    Thanks to inTheGrid … an excellent job you did … and the plugin really works ??

    Though, one things pops up in my own setup.

    I create locally and then deploy to production. Therefore I adjusted my wp-config.php to check whether it is running locally or on the production server

    if ($local){define('DB_NAME', 'local_db_name');}else{define('DB_NAME', 'server_db_name');}

    So when I restore a backup from the server installer asks me

    1) to either empty the complete root directory of my installation or at least delete wp-config.php … which I don’t like to do for obvious reasons ??

    2) take db name and user data to log into my mySQL database AND also to overwrite my wp-config.php

    So I end up with:

    if ($local){define('DB_NAME', 'local_db_name');}else{define('DB_NAME', 'local_db_name');}

    Is there somewhere an option in the installer process to skip overwriting wp-config.php?

    regards
    Heinz

    https://www.ads-software.com/extend/plugins/duplicator/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey Heinz,

    Thanks for the feedback… I see your issue. Right now you will just have to manually comment out the logic in the installer.template.php file to not write to the wp-config file (just search for wp-config.php).

    I currently have a pretty large list of todo items. I’ll put that on the list, but it may be a few version before it gets implemented…

    Hope that helps!

    Thread Starter wp_hela

    (@wp_hela)

    Thanks for your response … at least I knwo what to do

    No Problem! Feel free to submit any code changes as I have been using various contributions from other developers…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Duplicator] Skip wp-config.php overwrite’ is closed to new replies.