Volume path to frontend
pikosozbrna
HOBBYOP

a year ago

Hi, I have created a volume and mounted path to "/image_storage" and I want to make it available in my frontend for displaying images. I have created the directories in the volume and checked them in the browser, they are all fine. I have tried many paths, but I think this one is closed. Volume is mounted to server that saves images to the volume. Would be glad for any help.

/image_storage/products/product_id/file_name
Solved

7 Replies

a year ago

Yout backend would need code to read the files off disk and serve them publicly, this is not something Railway does for you.


pikosozbrna
HOBBYOP

a year ago

Is there some other way to store files from backend and display them to frontend in Railway ?


a year ago

Nothing Railway native, you would need to write code to serve the files off disk over the network.


pikosozbrna
HOBBYOP

a year ago

Any tips on what I should try to achieve this? Any keywords, I'm a bit lost at this point.


a year ago

What framework?

Additionally, please stop using nodemon in production.


pikosozbrna
HOBBYOP

a year ago

I used Nods.js with Express.js and React for the frontend.


a year ago


Loading...