update deploy.sh
This commit is contained in:
parent
08148ce5f2
commit
af16e8a0a2
|
|
@ -5,21 +5,21 @@ export deploy_path=/opt/webapps/bonus-cloud
|
||||||
export app_workspace=/home/jenkins/workspace/Bonus-Cloud
|
export app_workspace=/home/jenkins/workspace/Bonus-Cloud
|
||||||
|
|
||||||
|
|
||||||
app_source_jars=(
|
#app_source_jars=(
|
||||||
"bonus-auth/target/bonus-auth.jar"
|
# "bonus-auth/target/bonus-auth.jar"
|
||||||
"bonus-gateway/target/bonus-gateway.jar"
|
# "bonus-gateway/target/bonus-gateway.jar"
|
||||||
"bonus-modules/bonus-file/target/bonus-file.jar"
|
# "bonus-modules/bonus-file/target/bonus-file.jar"
|
||||||
"bonus-modules/bonus-gen/target/bonus-gen.jar"
|
# "bonus-modules/bonus-gen/target/bonus-gen.jar"
|
||||||
"bonus-modules/bonus-job/target/bonus-job.jar"
|
# "bonus-modules/bonus-job/target/bonus-job.jar"
|
||||||
"bonus-modules/bonus-oss/target/bonus-oss.jar"
|
# "bonus-modules/bonus-oss/target/bonus-oss.jar"
|
||||||
"bonus-modules/bonus-system/target/bonus-system.jar"
|
# "bonus-modules/bonus-system/target/bonus-system.jar"
|
||||||
"bonus-visual/bonus-monitor/target/bonus-visual-monitor.jar"
|
# "bonus-visual/bonus-monitor/target/bonus-visual-monitor.jar"
|
||||||
)
|
#)
|
||||||
|
#
|
||||||
for source_jar in "${app_source_jars[@]}"; do
|
#for source_jar in "${app_source_jars[@]}"; do
|
||||||
cp -f ${app_workspace}/${source_jar} $deploy_path
|
# cp -f ${app_workspace}/${source_jar} $deploy_path
|
||||||
echo "copied ${app_workspace}/${source_jar} to $deploy_path"
|
# echo "copied ${app_workspace}/${source_jar} to $deploy_path"
|
||||||
done
|
#done
|
||||||
# Define an array of JAR files to run
|
# Define an array of JAR files to run
|
||||||
jars=("bonus-auth.jar --spring.config.location=file:auth_bootstrap.yml"
|
jars=("bonus-auth.jar --spring.config.location=file:auth_bootstrap.yml"
|
||||||
"bonus-gateway.jar --spring.config.location=file:gateway_bootstrap.yml"
|
"bonus-gateway.jar --spring.config.location=file:gateway_bootstrap.yml"
|
||||||
|
|
@ -57,7 +57,7 @@ done
|
||||||
# Iterate over the JAR files array
|
# Iterate over the JAR files array
|
||||||
for jar in "${jars[@]}"; do
|
for jar in "${jars[@]}"; do
|
||||||
echo "Starting $jar"
|
echo "Starting $jar"
|
||||||
nohup java -jar $jar >/dev/null 2>&1 &
|
nohup /usr/lib/jvm/jdk1.8.0_381/bin/java -jar $jar >/dev/null 2>&1 &
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "All JARs have been run successfully."
|
echo "All JARs have been run successfully."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue