MagGGG MagGGG - 7 months ago 85
Java Question

How to keep springboot application alive after exiting putty

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 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.