R
Railway7mo ago
a11rew

Can volumes be mounted to relative paths?

My application depends on persistent data written to ./DATA. The web ui does not allow relative paths and /DATA as a mount point does not persist the changes.
5 Replies
Percy
Percy7mo ago
Project ID: ed21cf63-06b9-495d-a87c-325bc4224b89
a11rew
a11rew7mo ago
ed21cf63-06b9-495d-a87c-325bc4224b89
Adam
Adam7mo ago
I don't know if the UI supports relative paths, for your use case can you not just use /DATA? If you have a volume mounted at /DATA any writes you do to that directory should persist. You can use Brody's filebrowser template to investigate the volume if you are unsure if they are saving You can add the template to your project by going to add -> templates -> filebrowser
Brody
Brody7mo ago
your code is put into /app so you would want to mount to /app/DATA
a11rew
a11rew7mo ago
Mounting to /app/DATA worked. Thank you!