吴学文
2019-04-24 63be739a6d7224fee3595c84174d319135aafe7b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
#### debug model prod
#nohup java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar -Dspring.profiles.active=dev target/ConsoleService.jar > console.log 2>&1 &
 
#### normal prod model
#nohup java -jar -Dspring.profiles.active=prod target/ConsoleService.jar > console.log 2>&1 &
 
#### normal test model
#nohup java -jar -Dspring.profiles.active=test target/ConsoleService.jar > console.log 2>&1 &
 
#### normal dev model
#nohup java -jar -Dspring.profiles.active=dev target/ConsoleService.jar > console.log 2>&1 &
 
nohup java -jar -Dspring.profiles.active=$1 target/ConsoleService.jar > console.log 2>&1 &
 
tail -100f console.log