I am running my spring boot application on my server using putty via command mvn spring-boot:run and it runs only when I have open ssh session. Is it possible to keep application alive after I disconnect session? Or do I have to make executable war file and deploy to installed tomcat server on my ubunntu 14.04. I know others ways to deploy boot apps but I want to know if it is possible in my approach.
You can run the command in the background and with nohup like so
nohup mvn spring-boot:run &
When you do this, the application runs in background even after you close ssh session.
In putty, you need to use nohup mvn spring-boot:run > spring-log.txt &
to run the command in the background and this generates the spring-log.txt
file.
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