At work we don’t have much control over how staging sites are made. To apply updates we have staging sites which are just copies of the whole file system and database just with a different URL. We want to be able to add those to our main-wp manager to manage those stating sites too since they are always on the same URLs, but since they are basically a mirror of the live sites they also have (on the database) the same Child Unique ID. The only file that is different between these sites and the live ones is wp-config.php.
Is there a way to store the value of the MainWP Child Unique ID in the wp-config.php such that it overrides the one from the database?
Are these staging sites using the same DB as the production site but maybe with different prefixes?
Or are you just copying the DB in order to create the new site?
They are in another database, with a different user and password, all the contents are the same, and the domain name is defined in the wp-config and when the database is copied the instances of the domain are searched and replaced to match the target domain of the copied website in the sql dump file.
Yeah, I do. But the site gets disconnected immediately after the DB backup is restored when it comes from another domain name, forcing us to reconnect the site by starting the process of adding it to the main site again from 0 because the token will be new. Hence why I want to find a way to store the Security ID on the wp-config instead, so it doesn’t depend of the database.
Please feel free to make a suggestion about this on our feedback site. That way, others can vote for it, letting us know which features our users want the most. https://voice.mainwp.com