My App
Advance features

Deployment Types

Understand the differences between Deploy, Redeploy, and Replace Deployment in Rofy.

Deployment Types

Understanding Deploy, Redeploy, and Replace Deployment in Rofy.

Rofy supports three deployment types. Each handles your code, secrets, and data differently, so choosing the correct option is important to avoid unexpected data loss.


Overview

Deployment TypeDescription
First DeployDeploy a brand new application
RedeployUpdate an existing deployed app
Replace DeploymentReplace an existing app with a new one

1. First Deploy (New App)

When It Happens

You click Deploy for the first time on a project that has never been deployed.

What Gets Created

  1. New App Identity
    A unique app record is created.

  2. Empty Database
    A brand new database is provisioned.

  3. Production Secrets
    Values from your development .env file are stored as production secrets.

  4. Live URL
    Example:
    https://your-app.rofy.app

  5. Container Image
    Your code is built and stored as a container image.

Data State

Everything is new:

  • Fresh database
  • New secrets
  • New URL
  • New app identity

Perfect for launching a brand new app.


2. Redeploy (Update Existing App)

When It Happens

You click Deploy on an application that is already live.

What Gets Updated

  • Latest code from the development environment
  • Updated application build

What Stays the Same

  • Database (all data preserved)
  • Existing secrets
  • Same URL
  • Same app identity

Data Handling

Database

  • Same database connection
  • All records preserved
  • Users unchanged
  • No data loss

Secrets

  • Existing secrets remain unchanged
  • New keys from .env are added
  • Existing keys are not overwritten

Example

First deploy .env

On this page