Skip to content

Shell script for management of Spring Boot Application.

Notifications You must be signed in to change notification settings

ladotech/spa-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Spring Boot Application Shell

Shell script for management of Spring Boot Application.

Usage

Install

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

Start app if it is not running.

./spa your-app.jar start

Stop

Stop app if it is running.

./spa your-app.jar stop

Restart

This operation will stop app first, if the app is running. Otherwise, just same as start command.

./spa your-app.jar restart

Status

Show if the app is running.

./spa your-app.jar status

Rolling

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