Shell script for management of Spring Boot Application.
cd /path/to/your/app
## `ls` will be:
## - your-app.jar
## - application.properties
## use newest
wget https://gitlab.com/ladotech/spa-shell/raw/master/spa
chmod +x spa
You can edit it with vi spa
to change something.
Start app if it is not running.
./spa your-app.jar start
Stop app if it is running.
./spa your-app.jar stop
This operation will stop app first, if the app is running. Otherwise, just same as start
command.
./spa your-app.jar restart
Show if the app is running.
./spa your-app.jar status
Rolling logs file logs/console.log
and logs/error.log
by time. This operation will be also executed when the app starts, but you can run it with rolling
command at anytime you want.
./spa your-app.jar rolling