This topic describes first-time onboarding deployment of an existing CMS website to the _Integration_ environment, as part of the [Optimizely Digital Experience Platform](🔗).
When is this applicable?
This is an onboarding scenario for an **existing site which you want to move to a cloud-based environment for the first time**, for further development and maintenance there. In this case, you already have a database with content, and you will need to get that restored to the correct application, which will be done by Optimizely.
## Before you start
This topic uses Visual Studio with the Optimizely extensions and publish profiles. However, you can also use [other deployment methods](🔗).
See [DXP Requirements](🔗) for recommended versions of software, tools and services to use when deploying.
See [Getting Started with DXP](🔗) for information needed to deploy.
## 1. Create the output files
To deploy from your local development environment, export the database as a **.bacpac** file and upload it to the DXP integration environment’s storage account. Optimizely support will import it for you.
You can also upload the BLOBs directly (unpacked) to your DXP integration enviroment’s storage account.
Also, you can deploy the code using Visual studio or the deployment tool of your choice to the DXP integration environment.
### Application
In Visual Studio:
Right-click on your project and select the **Publish** tab.
Select **Custom.**
Enter a name for the publish profile.
Click **OK.**
On the **Connection** tab:
Select **File system** as the **Publish method**
Select a target location for the files
Click **Next**.
On the **Settings** tab:
Select **Release** for publishing **Configuration.**
Click **Publish**.
Locate the application files in the target folder you selected in step 3, and zip them using a zip tool of your choice.
### Database
In MS SQL Server Studio:
Connect to the database to use.
Select and right-click on the database.
Select **Tasks** > **Export Data-tier Application...**
In the **Export Settings** tab:
Select **Save to local disk**
Select a target location for the files
Enter a name for the bacpac file
Click **Next**.
After the export, verify the results and click **Close**.
### Media/BLOB
In Visual Studio, right-click on your project and select **Open folder in File Explorer**.
Locate the _blobs_ folder under _App\_Data_, and zip the content of the _blobs_ folder using a zip tool of your choice.
## 2. Upload the output files
When you have created the output files, you can deploy the code yourself. For the _bacpac_ and _media/BLOB files_, contact [customer support](🔗) and follow the instructions provided. You will receive the keys to upload the bacpac and media/BLOB files to the upload container on the storage account, and Optimizely will finalize the deployment.