Skip to content

Best practices for incremental updates after datasette publish fly? #2017

Answered by cldellow
jayljohnson asked this question in General
Discussion options

You must be logged in to vote

I think a wrinkle is that when you do datasette publish fly database.db, you're baking database.db into the docker image, so it's not meant to be modified.

The proposals you have sound like interesting things, but I think there's nothing quite like that yet.

So, what can you do?

One solution might look something like this:

  1. Use Fly's persistent volumes to get a place where your DB can live and persist between deploys. https://simonwillison.net/2022/Sep/5/laion-aesthetics-weeknotes/ documents how to do this, scroll down to "Deploying it to Fly"

  2. Figure out a way to run csvs-to-sqlite on your fly instance.

I think you can achieve (2) in either of two ways:

Option A: ssh to your Fly inst…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jayljohnson
Comment options

Answer selected by jayljohnson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants