I got this to work. With the Dockerfile
and fly.toml
in the current directory run this:
flyctl apps create clip-datasette-on-fly
flyctl deploy
(You'll need a different app name, which you will have to update in fly.toml
too)
This won't quite work out of the box though, it needs more CPU and memory. This should get it working:
flyctl scale vm shared-cpu-2x
flyctl scale memory 4096
It's running datasette-scale-to-zero
- without it that would cost about $22/month.
Even that wasn't enough memory, I ended up bumping it to:
flyctl scale vm performance-1x
flyctl scale memory 8192
Which is $61.02/month if it runs all the time! So I added datasette-block-robots
to hopefully stop it from being crawled.
https://clip-datasette-on-fly.fly.dev/_memory?sql=select+hex%28llm_embed%28%27clip%27%2C+%3Aq%29%29&q=this+is+a+longer+sentence