I was creating my mini file hosting server and I was trying to find ways to upload files onto the server, and discovered fly sftp shell
Except when I push a file onto the machine, it becomes visible and then when the machine shuts down and wakes up again, the uploaded file becomes deleted. How do I avoid this?
Okay just realized deleting files isn’t permanent either. I’m using auto-stop and auto-start methods on my node.js app to save resources, but I want to avoid having to turn both these settings off
Thanks for the response, I’ve added a volume but me manually pushing files to the volume via sftp isn’t permanent for some reason. Am I doing something wrong?
I’ve also updated my app to incorporate an uploading system, and the same issue occurs - the files saved onto the volume do not persist after machine reboots.
Wow okay, found something weird. It’s probably a simple configuration error but using sftp put in the root/files volume seems to control that direct volume.
I’ve done a restart of the machine and that file in the root/files is persisting, so I think I found my error. I’ll check back later