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 Type | Description |
|---|---|
| First Deploy | Deploy a brand new application |
| Redeploy | Update an existing deployed app |
| Replace Deployment | Replace 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
-
New App Identity
A unique app record is created. -
Empty Database
A brand new database is provisioned. -
Production Secrets
Values from your development.envfile are stored as production secrets. -
Live URL
Example:
https://your-app.rofy.app -
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
.envare added - Existing keys are not overwritten
Example
First deploy .env