user1391445
user1391445

Reputation: 731

Running the play framework in development mode in the background

I need to find a way to run the play framework in development mode (the usual 'play run' command) but have it run in the background instead of being attached to a terminal. Unfortunately 'play run &' doesn't seem to work, the process stops instead of running and my app never works. I'm not sure why this is, just using play run and keeping the interactive terminal open works fine, but I also need to be able to run this in the background for automated deployment of development machines.

Upvotes: 4

Views: 1035

Answers (1)

tsechin
tsechin

Reputation: 697

How about screen as a workaround:

screen -S play -d -m sbt run

It'll terminate when sbt quits, or you can attach to it with screen -r play

I'm pretty sure tmux would work too.

Upvotes: 3

Related Questions