shiyj
2019-07-07 348c483d9e8cf81c485289a44c717fe1c23f4065
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
#### debug model prod
#nohup java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar -Dspring.profiles.active=dev target/CodeService.jar $1 > code.log 2>&1 &
 
#### normal prod model
#nohup java -jar -Dspring.profiles.active=prod $1 target/CodeService.jar > code.log $1 2>&1 &
 
#### normal test model
#nohup java -jar -Dspring.profiles.active=test $1 target/CodeService.jar > code.log $1 2>&1 &
 
#### normal dev model
nohup java -jar -Dspring.profiles.active=$1 $2 target/CodeService.jar > code.log $1 2>&1 &
 
tail -100f code.log