I cant develope my app
ashrin79
HOBBYOP

4 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?

Solved$5 Bounty

Pinned Solution

kampouse
HOBBY

4 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

https://github.com/railwayapp-templates/java-spring-boot ?

3 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


ashrin79
HOBBYOP

4 months ago

My problem is that show me the error: warning emoji Script start.sh not found

heavy_multiplication_x emoji 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?


kampouse
HOBBY

4 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

https://github.com/railwayapp-templates/java-spring-boot ?


Status changed to Solved brody 4 months ago


Loading...