- install .direnv
- install Lefthook
- install nilaway
- run
lefthook installto set up pre-commit hooks - copy
.envrc-exampleto.envrc, adjusting the values - run
direnv allow . - run
go run cmd/main.go - a new
local.dbwill be created inlocal/
docker build -t monolith .
# to inspect:
docker run -it monolith
docker run monolith
fly launch
fly volume create monolithvolume -r ams -n 1
fly deploy
fly logs
Since sqlite is file based, we can simply download the db. For that to work, follow this thread: fly.io forum Here's another article.
cd prod/
scp root@<app name in fly.toml>.internal:/data/monolith.db .
scp root@<app name in fly.toml>.internal:/data/monolith.db-shm .
scp root@<app name in fly.toml>.internal:/data/monolith.db-wal .