Skip to main content

Deploying the Frontend

This guide will walk you through deploying changes to the Vollie Fly.io application, which is split into frontend and backend components.

Prerequisites

  • A Fly.io account with access to the existing apps configured for Vollie frontend and backend.
  • The Fly CLI (flyctl) installed and configured with your Fly.io account. Refer to the Fly documentation for installation instructions: https://fly.io/docs/flyctl/install/
  • The git repository locally downloaded

Deployment Process

Important Note:

  • These commands should only be run from the frontend directory of your code repository. The flyctl command uses the fly.toml file in the current directory to determine the application and configuration for deployment.

Steps:

  1. Navigate to the frontend directory:
    cd frontend
  2. Verify Fly Login:
     fly auth whoami   
    If not logged in, use:
     fly auth login   
  3. Deploy the Frontend:
     fly deploy   

Ensure the deployment is monitored within the application on fly.io to ensure no failures occurred after deployment.