This question is in reference to the solution posted in the following the link:
Paperclip, set path outside of rails root folder
The answer provided mentions creating a virtual folder, but there's no explanation on how to do it. I have a Rails app via Dokku, and I have a mounted digital ocean block storage located in a folder on the root. "/mnt/volume-sgp1-01/".
So the questions is how to make this "virtual folder" that points to that specific directory which is outside of the rails app?
Also, how to configure a custom GET that will make all the files within it accessible via xyz.com/mnt/volume-sgp1-01/...etc.
UPDATE: I am referring to a "virtual folder" i.e. a folder that is not a real folder, but recognized as one in a Rails app, that points to an existing folder outside of Rails root folder.
As for the purpose of the folder, it is to provide a location in the server for permanent storage that is not affected by anything in the Rails root folder, as whenever I redeploy rails, the files in the Rails folder are replaced.
[Note: I cannot use Amazon AWS as China often blocks their servers. So, I am using Digital Ocean Block Storage as my solution.]