Not showing images outside src folder
quyen542
TRIALOP

2 years ago

Hi,

So here in my SpringBoot application project I have a folder name "food-photos" outside the src folder that I used for containing my website's dishes' photos, all photos show normally on localhost. However it seems to be missing the folder "food-photos" and not show images when I deploy my project on the railway, how do I fix this problem?

This is my github project: https://github.com/quyen542/thesis_new

Thanks,

2 Replies

brody
EMPLOYEE

2 years ago

Is your Dockerfile named Dockerfile.txt on purpose?


quyen542
TRIALOP

2 years ago

Is your Dockerfile named Dockerfile.txt on purpose?

Well, before deploying successfully, I had an error that release version 21 was not supported so I followed to this guide from this link https://help.railway.app/questions/java-release-version-21-is-not-supporte-b3d67ab7 to add dockerfile and this link https://help.railway.app/questions/java-release-version-jdk-21-not-supporte-3bb0eb32 to add NIXPACKSJDKVERSION 21 variable.

However, I have just tried deleting the dockerfile and the project still runs perfectly but the images from food-photos still do not show.


Loading...