Commit 66ab1626 authored by QA-甘 盛聪's avatar QA-甘 盛聪

update

parent 1f9e0d3e
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
project_name=$1 project_name=$1
is_public_ip=$2
pwd_path="/home/qa-deploy-utils/qa_shell_script" pwd_path="/home/qa-deploy-utils/qa_shell_script"
config_shell_path="$pwd_path" config_shell_path="$pwd_path"
config_server="$pwd_path/config_server" config_server="$pwd_path/config_server"
...@@ -157,12 +156,15 @@ function ack() ...@@ -157,12 +156,15 @@ function ack()
done done
} }
if [ "$project_type" = "java" ]; then ProjectType=`node $config_server/get_project_config.js -name $project_name -attr type`
echo "$ProjectType"
if [ "$ProjectType" = "java" ]; then
restartJavaProject $project_name restartJavaProject $project_name
elif [ "$project_type" = "node" ]; then elif [ "$ProjectType" = "node" ]; then
restartNodeProject $project_name restartNodeProject $project_name
elif [ "$project_type" = "python" ]; then elif [ "$ProjectType" = "python" ]; then
restartPythonProject $project_name restartPythonProject $project_name
elif [ "$project_type" = "ui" ]; then elif [ "$ProjectType" = "ui" ]; then
restartUiProject $project_name restartUiProject $project_name
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment