ื“ืœื’ ืœืชื•ื›ืŸ ื”ืจืืฉื™

Fly.io Deployment Guide

Deploy Ever Gauzy to Fly.io for global edge deployment.

Prerequisitesโ€‹

  • flyctl CLI installed
  • Fly.io account

Quick Startโ€‹

1. Launch Appโ€‹

fly launch --name gauzy-api --image ghcr.io/ever-co/gauzy-api:latest

2. Create PostgreSQLโ€‹

fly postgres create --name gauzy-db
fly postgres attach gauzy-db --app gauzy-api

3. Create Redisโ€‹

fly redis create --name gauzy-redis

4. Set Secretsโ€‹

fly secrets set \
JWT_SECRET=$(openssl rand -base64 32) \
JWT_REFRESH_SECRET=$(openssl rand -base64 32) \
API_BASE_URL=https://gauzy-api.fly.dev \
CLIENT_BASE_URL=https://gauzy-webapp.fly.dev

5. Deployโ€‹

fly deploy

fly.tomlโ€‹

[build]
image = "ghcr.io/ever-co/gauzy-api:latest"

[env]
NODE_ENV = "production"
DB_TYPE = "postgres"
PORT = "3000"

[[services]]
internal_port = 3000
protocol = "tcp"

[[services.ports]]
handlers = ["http"]
port = 80

[[services.ports]]
handlers = ["tls", "http"]
port = 443

[[services.http_checks]]
interval = 10000
grace_period = "5s"
method = "get"
path = "/api/health"