simonw / datasette-publish-fly

Datasette plugin for publishing data using Fly
Apache License 2.0
20 stars 7 forks source link

App published to fly.io with volume is losing data after `fly apps restart` #28

Open jayljohnson opened 1 year ago

jayljohnson commented 1 year ago

I successfully deployed datasette to fly.io using the command below. I am trying to keep the .db in a persisted volume so that I can add and update data periodically but am running into some problems including:

Here's the full command I'm using

datasette publish fly data/outputs/sqlite/some.db \
    --app="some-project" \
    --create-volume 2 \
    --volume-name vol1 \
    --static vol1:data/outputs/test/ \
    --install datasette-saved-queries \
    --setting sql_time_limit_ms 25000

I'm not sure if this is a bug or user error, and appreciate any guidance. There's a good chance I'm missing something fundamental about how fly.io volumes work.