More than one environment and SiteSync
Current setup
Environments: You have one of the following set of environments:
- Development and one or more Test
- Development and Staging
- Development, one or more Test, and Staging
- Development, one or more Test, and Live
- Development, Staging, and Live
- Development, one or more Test, Staging, and Live
SiteSync: You have a system with or without SiteSync.
Desired setup
Environments: You want to setup in Continuous integration the following environments:
- Development environment
- One or more Test environments
- Live environment
SiteSync: You do not want to use SiteSync.# More than one environment
PREREQUISITES: Before you setup the Continuous delivery process, perform the following:
- Make sure that the project code is the same both on your Live and Development environments:
If you have any development in progress on your Development environment, make sure you complete it and release it to Live, before you continue with setting up the Continuous delivery process.- Upgrade your project on all environments to Sitefinity CMS 9.2 or above.
For more information, see Upgrade.# More than one environment and SiteSync
Migrate the configurations
Before you setup Continuous delivery, you must determine the storage mode of your configuration files.
For more information, see Determine the storage mode of configurations.
If your configurations are stored in the database, you must first migrate them.
For more information, see Migrate configurations.
Setup the Development environment# More than one environment
In your Development environment, open your project and perform the following:
- Download your latest database and restore it to your Development environment.
- If you already have Development and Live environments, download the database from Live.
- If you already have Development and Staging environments, download the database from Staging.
- If you have Development and Test environments, download the database from Test.
- Change the connection string in the
DataConfig.configto point to the restored database. - Make sure Read-only mode of configurations is turned off.
- Make sure the Staging & Syncing module is deactivated.
- Set Deployment mode to Source.
- Turn on Auto-storage of configurations.
- Restart the application.# More than one environment and SiteSync
RESULT: Your Development environment is setup for Continuous delivery and you can deploy your project to Test environments.# More than one environment
Setup the Test environment# More than one environment
- Deploy your project without the database from your Development environment to your Test environment.
- Download your latest database and restore it to your Test environment.
- If you already have Development and Live environments, download the database from Live.
- If you already have Development and Staging environments, download the database from Staging.
- If you have Development and Test environments, then the latest database is already on Test.
- Change the connection string in the
DataConfig.configto point to the restored database. - Open your deployed project and make the following settings:
- Set Deployment mode to Target.
- Turn on Read-only mode of configurations.
- Verify that the project is working correctly.
- Perform this procedure for every Test environment that you want to have.
RESULT: Your Test environments are setup for Continuous delivery and you have a project that is ready for deployment to Live environment.# More than one environment
Setup the Live environment.
- Deploy your project without the database from your Test environment to your Live environment.
For more information on deployment options and procedures, see Deployment. - If your project was not deployed to Live previously, download and restore the latest database.
- If you already have Development and Staging environments, download the database from Staging.
- If you have Development and Test environments, download the database from Test.
- Change the connection string in the
DataConfig.configto point to the Live database. - Run the project.
RESULT: Your project is Live. Your environments are continuously integrated and ready for Continuous delivery.