Skip to main content
Deploy a Node.js or Express server on ECS Fargate behind an Application Load Balancer.

Prerequisites

  • A Git repository containing your application and its production build command.
  • A Ravion account with your AWS account connected. Start free at Ravion signup.
  • The Ravion CLI installed and authenticated. See CLI installation.
The examples use my-org/my-app as a placeholder. Replace it with your repository before applying the config.

Set up this Node.js or Express app for Ravion ECS hosting.

Open in Cursor

Configure the deployment

Deploy a Node.js or Express server to ECS Fargate behind an Application Load Balancer. Ravion provisions the network and compute resources in your AWS account. This example uses Railpack for the build. Use build_source: dockerfile instead when you need a custom Dockerfile. Your npm run build command may compile TypeScript to dist. Set railpack_start_cmd to the production command in your package.json; this example uses npm start.
ravion.yaml
The ECS module adds PORT automatically. Bind Express to process.env.PORT and 0.0.0.0. Put plain runtime settings in environment_variables and sensitive values in secrets.

Apply and connect your domain

Follow custom domains to configure DNS and TLS.

Next steps

Custom domains

Point a domain at your deployed service and manage its certificate.

Project config

Preview and apply Ravion configuration from source control.

Pipelines

Add approvals, migrations, and deployment automation.

Logs and metrics

Inspect deploy output and production health in Ravion.