Hey y’all,
I had some machines running with volumes attached. Volumes persisted data, machines accessed and delivered the data.
As my machines occasionally, naturally, restart (since they are ephemeral images that come and go like a gentle summer zephyr) they restart and look for the [mounts]
directive. My deployments are almost a year old, and so have no [mounts]
directive. The machine spin up, dont mount the volume, and have no access to the data. Not ideal!
If I add a [mounts] dirctive to my fly.toml and redeploy, I can attach the volume to machine. Neat. My app had been storing all it’s data in the /data
directory. If I use a directive like:
[[mounts]]
source = 'data'
destination = './data'
I still can’t see any of my historical data. Where is my old data on the volume, and how should I properly mount it for my app to access now?
A very frustrating what feels like major breaking change to flyctl.