@@ -1,5 +1,8 @@
#!/bin/bash
jarName=$1
-echo " --- "
+if [ -z "${jarName}" ]
+then
+ jarName=ifast-1.0.0.jar
+fi
ps -ef | grep ${jarName} | grep -v grep | grep -v deploy | awk '{print $2}' | xargs kill -9
@@ -1,6 +1,14 @@
profile=$2
+if [ -z "${profile}" ]
+ profile=dev
nohup java -jar ../${jarName} --spring.profiles.active=${profile} >/dev/null 2>&1 &