I am very new to fly.io and have been testing it out using the free plan since yesterday. The image is uploaded with ActiveStorage in the Rails app. After deployment, the images get lost within a few minutes of inactivity on the server. However, there’s no problem in dev. environment.
Also, I tried creating a volume with the command fly volumes create myapp_data --region ord --size 1 but it throws the following error:
Error: failed creating volume: failed to create volume: To create more than 1GB in volumes please add a payment method.
There’s no persistent storage on a Machine without a volume. And if you have auto stop activated in your fly.toml file, then Machines will stop when there’s no traffic to the app.