"Play run" exits when run via hudson, but works fine from the command line

Running into a weird hudson and game issue. When you start / start a new game project / application through the command line (using the "play run" command), the application starts normally and waits until you press CTL + D (which is expected). So imagine a shell script 'run-play.sh' with the following contents,

cd my-play-app
play run
echo "Play exited"

When the above script runs on my box locally, I see the following output:

--- (Running the application from SBT, auto-reloading is enabled) ---

[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0%0:9000

(Server started, use Ctrl+D to stop and go back to the console...)

But when the same command is run through the hudson UI (which is ssh in the same local field), the script immediately exits and says that "playback is complete." I have no idea why executing the same command through hudson will behave differently than running it directly in the field. We are on Play 2.2.1

+4
source share
1 answer

play run play run & . tty. , script , tty. , ssh -t, tty "Force pseudo-tty allocation". script, ssh -t , -t -t (. Man- ssh).

0

Source: https://habr.com/ru/post/1523443/


All Articles