Files
payments-rest-api/fly/README.md
2025-06-10 16:28:09 +03:00

1.3 KiB

Deployment to fly.io

This document explains deploying breez payments api to fly.io

Prerequisites

Installation

Deployment to Fly.io

  1. Install the Fly CLI:

    # macOS
    brew install flyctl
    
    # Linux
    curl -L https://fly.io/install.sh | sh
    
    # Windows PowerShell
    iwr https://fly.io/install.ps1 -useb | iex
    
  2. Log in to Fly:

    fly auth login
    
  3. Clone this repo

  4. Launch the app:

    cd <repo>/fly  # make sure you are in the fly directory before running fly launch so it picks up fly.toml 
    fly launch
    

    Answer as follows:

    ? Would you like to copy its configuration to the new app? y
    ? Do you want to tweak these settings before proceeding? N
    
  5. Set secrets(see here):

    fly secrets set BREEZ_API_KEY=your_breez_api_key
    fly secrets set SEED_PHRASE=your_mnemonic_seed_phrase //e.g. "word1 word2 word3 ... word12"
    fly secrets set API_SECRET=your_api_secret
    
  6. Deploy the app:

    fly deploy