Skip to main content

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.

  1. 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.

  2. You should then get a message to say it was successful

  3. Open up fly.toml in notepad - you can do this from the command line

    notepad fly.toml
  4. 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.

  5. 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.