Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep sbt running (as a daemon process) after executing a command

Tags:

sbt

scalatra

I want to launch scalatra server from sbt. How do I do that? The following does launch scalatra:

sbt "container:start"

But it exits immediately:

[info] starting server ...
[success] Total time: 2 s, completed Sep 12, 2015 2:39:32 PM
> [info] waiting for server to shut down...

Most preferably the whole thing would run in a nohup as a daemon process.

like image 659
WestCoastProjects Avatar asked Oct 12 '25 10:10

WestCoastProjects


1 Answers

sbt "; <command>; console"

does the trick. Note the initial semicolon is required.

like image 121
WestCoastProjects Avatar answered Oct 14 '25 03:10

WestCoastProjects



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!