epic-deployment

Deploy Epic Stack applications to Fly.io with multi-region and CI/CD configuration.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/M-Kolacz/michalkolacz.com --skill epic-deployment-m-kolacz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: epic-deployment
Source: https://github.com/M-Kolacz/michalkolacz.com/tree/main/docs/skills/epic-deployment
Command: npx skills add https://github.com/M-Kolacz/michalkolacz.com --skill epic-deployment-m-kolacz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deployment of Epic Stack applications often requires manual orchestration of Fly.io deployments, region distribution, and CI/CD pipelines. This Skill provides a structured guide to deploy, scale, and monitor Epic Stack apps across multiple regions with automated migrations and healthchecks.

Core Features & Use Cases

  • Fly.io configuration and multi-region deployment using fly.toml and LiteFS.
  • CI/CD integration with GitHub Actions for automated deployments to production, staging, and preview environments.
  • Secrets management, healthchecks, backups, and dependency management for zero-downtime deployments.

Quick Start

Install the Fly.io CLI and login, create and configure the app, set environment secrets, wire up CI/CD, and perform an initial deployment. For example:

  • Install and login: fly auth login
  • Create app and configure regions: fly apps create my-app; edit fly.toml to set primary_region
  • Configure LiteFS and migrations: ensure other/litefs.yml is present and Prisma migrations run on primary
  • Deploy: fly deploy --app my-app
  • Set up Actions workflow: create .github/workflows/deploy.yml to automate deployment

Frequently Asked Questions about epic-deployment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an Epic Stack application to Fly.io with multi-region support?

To deploy an Epic Stack app to Fly.io, configure fly.toml with a primary region, integrate LiteFS via litefs.yml for database distribution, set environment secrets, and run fly deploy. This enables multi-region deployment with automated Prisma migrations.

What is the best way to set up CI/CD for Epic Stack deployments across staging and preview environments?

The best way to set up CI/CD for Epic Stack is creating a GitHub Actions workflow using .github/workflows/deploy.yml. This automates deployments to production, staging, and preview environments while managing secrets and migrations.

How does LiteFS integration work with Fly.io for distributed databases?

LiteFS integration provides distributed SQLite databases across Fly.io regions by configuring other/litefs.yml. It ensures primary region writes while replicating data to secondary regions, requiring Prisma migrations to run exclusively on the primary node.

Can I achieve zero-downtime deployment with Fly.io using Docker and healthchecks?

Yes, you can achieve zero-downtime deployment on Fly.io by configuring healthchecks, managing volumes properly, and using Docker-based deployment patterns. This ensures application availability during deployments across all configured regions.

Do I need to manually run database migrations when deploying Epic Stack to Fly.io?

No, you do not need to manually run database migrations. The deployment process enforces automated Prisma migrations that run on the primary region during deployment, ensuring database schema updates without manual intervention.

What are the limitations of using LiteFS for multi-region database replication in Fly.io?

LiteFS limitations include requiring writes to occur exclusively on the primary region, meaning secondary regions only support reads. Prisma migrations must be carefully managed to run only on the primary node to avoid database conflicts.