Hi @KM ,
To isolate your production and staging environments, you will need to use separate databases for each environment. This will ensure that changes made in your staging environment do not affect your production environment. Here are the steps you can follow to set up separate databases for your production and staging environments:
- Go to the Azure portal, navigate to your MySQL database and create a new database for your staging environment. You can do this by clicking on "New database" and following the prompts.
- In the Azure portal, navigate to your staging environment and update the connection string to use the new database. You can do this by going to "Configuration" and updating the value of the
DATABASE_URL
setting. - Once you have updated the connection string, test your staging environment to make sure that it is using the correct database and that changes made in the staging environment do not affect the production environment.
- Once you are satisfied with your changes in the staging environment, deploy them to the production environment. You can do this by swapping the staging and production slots.
By following these steps, you should be able to isolate your production and staging environments and prevent changes made in the staging environment from affecting the production environment.
Another alternative is using WordPress Multisite on Azure App Service.. WordPress Multisite is a feature of WordPress that enables you to run and manage multiple WordPress websites using the same WordPress installation. You could update multiple websites in a single click by using the parent WordPress dashboard, and even manage individual sites through their individual dashboards. This feature was previously called WordPress Multi-User.
Hope that helps.
-Grace