Browse Source

feature 补充启动shell

黎有为 1 year ago
parent
commit
e855e6956a
2 changed files with 9 additions and 3 deletions
  1. 3 1
      .gitignore
  2. 6 2
      start.sh

+ 3 - 1
.gitignore

@@ -30,4 +30,6 @@ build/
 !**/src/test/**/build/
 
 ### VS Code ###
-.vscode/
+.vscode/
+
+/nacos/logs

+ 6 - 2
start.sh

@@ -1,2 +1,6 @@
-nohup java -jar /root/SFTP/base-boot-0.0.1-SNAPSHOT.jar > /root/SFTP/base-boot.log&
-nohup java -jar /root/SFTP/cim-domain-0.0.1-SNAPSHOT.jar > /root/SFTP/cim-domain.log&
+export this_dir=`cd $(dirname $0); pwd`
+echo "workspace dir is ${this_dir}"
+
+nohup sh ${this_dir}/nacos/bin/startup.sh -m standalone > /root/log/nacos.log&
+nohup java -jar ${this_dir}/base-boot/target/base-boot-0.0.1-SNAPSHOT.jar > /root/log/base-boot.log&
+nohup java -jar ${this_dir}/cim-domain/target/cim-domain-0.0.1-SNAPSHOT.jar > /root/log/cim-domain.log&