Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.1 KB

README.md

File metadata and controls

50 lines (38 loc) · 1.1 KB

Example project for Drizzle LiteFS SQLite package and Bun🚀
Subscribe to our updates on Twitter!

Initial project setup

To setup Fly.io LiteFS app - please refer to official fly.io docs and LiteFS docs

Update your fly.toml

name = "YOU PROJECT NAME"
## ...

[mounts]
  destination = "/mnt/sqlite"
  ## fly mounts create mount_name
  source = "YOUR SOURCE NAME"

## ...

Quick start

## install bun
curl -fsSL https://bun.sh/install | bash

## install dependencies
bun install

## install fly cli - https://fly.io/docs/flyctl/installing/
fly login

## launch fly app
fly launch

## create fly volume
fly volumes create source_name

## deploy changes
fly deploy

## need multi regional scale?
## create volume in different region
fly volumes create source_name
## config scaling for your app
fly scale count 2 --max-per-region=1

To automatically generate SQL migrations

bun run generate