-
-
Save coindegen/906f4bc7ae5ed08239964ff192b95c56 to your computer and use it in GitHub Desktop.
litefs.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Documented example: https://github.com/superfly/litefs/blob/dec5a7353292068b830001bd2df4830e646f6a2f/cmd/litefs/etc/litefs.yml | |
fuse: | |
# Required. This is the mount directory that applications will | |
# use to access their SQLite databases. | |
dir: "${LITEFS_DIR}" | |
data: | |
# Path to internal data storage. | |
dir: "/data/litefs" | |
proxy: | |
# matches the internal_port in fly.toml | |
addr: ":${INTERNAL_PORT}" | |
target: "localhost:${PORT}" | |
db: "${DATABASE_FILENAME}" | |
# The lease section specifies how the cluster will be managed. We're using the | |
# "consul" lease type so that our application can dynamically change the primary. | |
# | |
# These environment variables will be available in your Fly.io application. | |
lease: | |
type: "consul" | |
# candidate: ${FLY_REGION == PRIMARY_REGION} | |
candidate: false | |
promote: true | |
# advertise-url: "http://${HOSTNAME}.vm.${FLY_APP_NAME}.internal:20202" | |
# advertise-url: "http://e2865517fe5078.vm.remilia-platform-0aa9.internal:20202" | |
advertise-url: "http://3d8d99e4b3d268.vm.remilia-platform-0aa9.internal:20202" | |
consul: | |
# url: "${FLY_CONSUL_URL}" | |
url: "https://:a38b2643-48e3-ef03-c8eb-54e06346320a@consul-iad-8.fly-shared.net/remilia-platform-0aa9-yexkqwo03kn1m38d/" | |
# key: "litefs/${FLY_APP_NAME}-v2" # added '-v2' | |
key: "litefs/remilia-platform-0aa9-v2" # hard-coding prod db? | |
exec: | |
- cmd: node ./other/setup-swap.js | |
- cmd: npx prisma migrate deploy | |
if-candidate: true | |
- cmd: npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment