10 months ago
My project has github code with spring-boot but show me an error. Could you help me how can I solve it? looks like it cant find my start file but it is the route in github: spendora/spendora_app/start.sh
How can i develope it in railway?
Pinned Solution
10 months ago
How are you deploying your app?
is it with docker maybe your script for lauching is not copied?
are you on railpack? https://railpack.com/languages/java
you could always use the base template as reference see how its done
3 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 📚 Deploy a Spring Boot App
- 🧵 Cors Error with Spring boot REST API - works with Postman
- 🧵 SPRING BOOT APP RECEIVING 403 ERROR
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
My problem is that show me the error: ⚠ Script start.sh not found
Railpack could not determine how to build the app.
But I have a start.sh file in my root folder, with pom.xml for example, with script:
#!/bin/bash
JAR_PATH="./spendora_app/target/myjarfile.jar"
LOG_FILE="app.log"
nohup java -jar $JAR_PATH > $LOG_FILE 2>&1 &
NEW_PID=$!
I´m using github to deploy mode but it doesn´t work.
In render it works.
Could you help me?
10 months ago
How are you deploying your app?
is it with docker maybe your script for lauching is not copied?
are you on railpack? https://railpack.com/languages/java
you could always use the base template as reference see how its done
Status changed to Solved brody • 10 months ago