Persisting the data in Fly
Persisting the data in Fly
When we update Actual, if we don't persist the data it will be erased each time we come to update.
Run the following command
flyctl volumes create actual_data --region lhr
This will create a volume in the london region. Replace
lhr
with another region code if desired.You should then get a message to say it was successful
Open up
fly.toml
in notepad - you can do this from the command linenotepad fly.toml
Add the following to the file
[mounts]
source="actual_data"
destination="/data"If you created a volume with a different name, put that in the source. Save the file.
Now from the command prompt run
flyctl deploy
Your application should be re-deployed with the updated configuration
If all went well, you should now be able to see your volume from the fly.io dashboard.