How to Clone Apps in App Platform

Validated on 9 Dec 2025 • Last edited on 10 Dec 2025

App Platform is a Platform-as-a-Service (PaaS) offering that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure.

You can clone an existing App Platform app to duplicate its configuration and components, making it easier to deploy the app to a different environment.

To clone an app, in the Apps section of the DigitalOcean Control Panel, select the app you want to clone. Click the Actions menu and choose Clone app.

The Actions menu dropdown list with the Clone app option highlighted.

Resource Settings

On the Clone App screen, the Resource settings table shows the settings copied from the original app. Click Edit beside any item you want to update.

The resource settings that were copied over from the original app.

You can update the following settings:

  • Name: A unique name for the resource.

  • Instance size and scaling: Adjust CPU, memory, and autoscaling for the new environment.

  • Build and run commands: Optional commands to run before or after deployment. Dockerfile apps can override the entrypoint here.

  • Output directory: For static sites. Specify the path where build assets are located.

  • Ports and routes: Set public and internal ports and URL paths for web services or static sites.

  • Environment variables: Set any runtime or build-time variables needed for the cloned app, such as database connection strings, API keys, or the app’s URL. Encrypted variables are not copied and must be set up again.

Database Configuration

The database configuration is copied from the original app. Click Edit to update any settings that differ for the new environment.

We recommend managed databases for production use. If needed, you can add a managed database after cloning the app. For more information, see How to Manage Databases in App Platform.

App-Level Environment Variables

When you clone an app, app-level environment variables are copied except for encrypted values, which must be set up again.

Click Edit to update environment-specific variables, such as database connection strings, API keys or tokens, feature flags, or environment-specific URLs.

Verify that all sensitive credentials and environment-specific variables are correctly set for the cloned app to ensure it runs in the intended environment.

Datacenter Region

When you clone an app, the datacenter region and the VPC network setting are copied from the original app.

You can select a different datacenter region if the cloned app runs in a different environment or serves a different user base. To optimize performance and reduce latency, choose a region geographically closest to the cloned app’s end-users.

You can update the VPC network setting if the cloned app belongs to a different environment, needs to connect to resources in a different VPC, or needs to be isolated from the original app’s network.

Finalize

In the Choose a unique app name field, type a name for the app.

In the Select a project dropdown menu, you can select an existing project or create a new project. If you create a new project, you have the option of adding a different environment.

The Finalize area with an example project tagged as development selected.

After you choose a name and project, review the Summary box, and then click Clone App. App Platform creates the cloned app using the selected settings and deploys it automatically.

After the cloned app deploys, you can view it using the URL at the top of the app’s Overview page. To add a database, click Add components, then choose Create or attach database.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.