I have an SBT scala application that runs fine using "sbt run". However, this locks up the console, and I'd rather start it as a service/daemon so that I can use the console, and also so that I can add it to init.d to ensure that my application is started automatically on startup.
I can't seem to find a way to do this. Running "sbt run &" seems to hang the app in the background.
Does anybody know how to do this?
You could also jar up your application into a "fat" jar using either sbt-assembly or sbt-onejar.
This will make it an executable jar and easily runnable via java -jar jarname.jar
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With