# Development environment

### Current setup

**Environments:** You have a project that is deployed on a Development environment.

### 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.

## 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](https://www.progress.com/documentation/sitefinity-cms/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](https://www.progress.com/documentation/sitefinity-cms/migrate-configurations).

## Setup the Development environment

In your Development environment, open your project and perform the following:

1. Make sure [Read-only mode of configurations](https://www.progress.com/documentation/sitefinity-cms/read-only-mode-of-configurations) is turned off.
2. Make sure the *Staging & Syncing* module is deactivated.
3. Set [Deployment mode](https://www.progress.com/documentation/sitefinity-cms/deployment-mode) to `Source`.
4. Turn on [Auto-storage mode of configurations](https://www.progress.com/documentation/sitefinity-cms/auto-storage-mode-of-configurations).
5. Restart the application.

> success **RESULT**: Your Development environment is setup for Continuous delivery and your project is ready for testing.

## Setup the Test environment

1. Deploy your project and its database from your Development to your Test environment.
2. Open your deployed project and make the following settings:
   1. Set [Deployment mode](https://www.progress.com/documentation/sitefinity-cms/deployment-mode) to `Target`.
   2. Turn on [Read-only mode of configurations](https://www.progress.com/documentation/sitefinity-cms/read-only-mode-of-configurations).
3. Proceed with testing.\
   For more information, see [Best practices: Testing](https://www.progress.com/documentation/sitefinity-cms/best-practices-testing).
4. If any of the tests fail, perform the following:
   1. Go back to your Development environment to fix the problem.
   2. From your Development environment, export the project for deployment and import the changes to your Test environment.\
      For more information, see [Export and deploy code changes](https://www.progress.com/documentation/sitefinity-cms/export-and-deploy-database-changes).
   3. Run the project on your Test environment.\
      The fixes will be automatically imported.
   4. Return to *Step 3*.
5. Perform this procedure for every Test environment that you want to have.

> success **RESULT**: Your Test environment is setup for Continuous delivery. When all the tests pass, you have a fully tested and working project, which you can deploy to production.

## Setup the Live environment

After all test have passed successfully, you can deploy your project and its database to Live.

1. Deploy your project and its database from your Test environment to your Live environment.\
   For more information on deployment options and procedures, see [Deployment](https://www.progress.com/documentation/sitefinity-cms/deployment).
2. Open your Live environment and run the project.

> success **RESULT**: Your project is Live. Your environments are continuously integrated and ready for Continuous delivery.
