index page
Index page not work on Ralway host but localy its work i use spring mvc
15 Replies
Project ID:
N/A
What do you mean by not working?
mind giving some more detail?
any errors?
i take internal server error
i use Spring mvc and all pages its work except the index page
i get internal server error
that's weird..
but localy its work
there is some path to make the index page root
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.
Do you have a Dockerfile?
If not, try copying the one from there
i dont have docker
after copy ?
Try deploying again.
i dont no any thing about docker
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.
i need to edit any thing insite this file ?
You shouldn't have to, no
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
Do you not use gradle?
If you do, try running
gradle wrapper
in your project directory
and make sure gradlew
isn't gitignored