R
Railway12mo ago
VitaminC

index page

Index page not work on Ralway host but localy its work i use spring mvc
15 Replies
Percy
Percy12mo ago
Project ID: N/A
Fragly
Fragly12mo ago
What do you mean by not working? mind giving some more detail? any errors?
VitaminC
VitaminC12mo ago
i take internal server error i use Spring mvc and all pages its work except the index page i get internal server error
Fragly
Fragly12mo ago
that's weird..
VitaminC
VitaminC12mo ago
but localy its work there is some path to make the index page root
root
root12mo ago
Could you try taking a look at https://github.com/aleksrutins/springboot-java? It's the reference Railway template - maybe it can help you
GitHub
GitHub - aleksrutins/springboot-java
Contribute to aleksrutins/springboot-java development by creating an account on GitHub.
root
root12mo ago
Do you have a Dockerfile? If not, try copying the one from there
VitaminC
VitaminC12mo ago
i dont have docker after copy ?
root
root12mo ago
Try deploying again.
VitaminC
VitaminC12mo ago
i dont no any thing about docker
root
root12mo ago
A dockerfile is also likely to give you a faster build and a smaller result image than using the default builder. Just copy the Dockerfile from that repository into the root of your project and deploy it to railway as usual.
VitaminC
VitaminC12mo ago
i need to edit any thing insite this file ?
root
root12mo ago
You shouldn't have to, no
VitaminC
VitaminC12mo ago
thank i will try i have this error now on log #10 ERROR: process "/bin/sh -c ./gradlew bootJar" did not complete successfully: exit code: 127 -----
[build 4/5] RUN ./gradlew bootJar:
0.296 /bin/sh: 1: ./gradlew: not found ----- Dockerfile:5 ------------------- 3 | COPY . /app 4 | WORKDIR /app 5 | >>> RUN ./gradlew bootJar 6 | RUN mv -f build/libs/*.jar app.jar 7 | ------------------- ERROR: failed to solve: process "/bin/sh -c ./gradlew bootJar" did not complete successfully: exit code: 127
root
root12mo ago
Do you not use gradle? If you do, try running gradle wrapper in your project directory and make sure gradlew isn't gitignored
Want results from more Discord servers?
Add your server