Skip to content

Instantly share code, notes, and snippets.

@SirajChokshi
Created February 13, 2024 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SirajChokshi/8ed59ea90389601ec66ddaa519ccd7fb to your computer and use it in GitHub Desktop.
Save SirajChokshi/8ed59ea90389601ec66ddaa519ccd7fb to your computer and use it in GitHub Desktop.
{
"$schema": "https://app.flightcontrol.dev/schema.json",
"environments": [
{
"id": "production",
"name": "Production",
"region": "us-west-2",
"source": {
"branch": "main"
},
"services": [
{
"id": "redwood-api",
"name": "Redwood API",
"domain": "streets-api.siraj.page",
"type": "fargate",
"buildType": "nixpacks",
"cpu": 0.5,
"memory": 1,
"buildCommand": "yarn rw deploy flightcontrol api",
"startCommand": "yarn rw deploy flightcontrol api --serve",
"port": 8911,
"healthCheckPath": "/graphql/health",
"envVariables": {
"REDWOOD_WEB_URL": "https://streets.siraj.page"
}
},
{
"id": "redwood-web",
"name": "Redwood Web",
"domain": "streets.siraj.page",
"type": "static",
"buildType": "nixpacks",
"singlePageApp": true,
"buildCommand": "yarn rw deploy flightcontrol web",
"outputDirectory": "web/dist",
"envVariables": {
"REDWOOD_API_URL": "https://streets-api.siraj.page"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment