Commit e8ca5049 authored by tywldx's avatar tywldx

fix

parent fb4b98b4
...@@ -17,6 +17,10 @@ config_path=`cat $config_server/config_path.sh` ...@@ -17,6 +17,10 @@ config_path=`cat $config_server/config_path.sh`
function restartJavaProject() function restartJavaProject()
{ {
pwd_path=$1
config_server="$pwd_path/config_server"
project_path="$config_server/project_path.sh"
projects=(`node $config_server/get_project_config.js -type java -attr name`) projects=(`node $config_server/get_project_config.js -type java -attr name`)
echo ${projects[@]} echo ${projects[@]}
for project in ${projects[@]} for project in ${projects[@]}
...@@ -67,6 +71,10 @@ function restartJavaProject() ...@@ -67,6 +71,10 @@ function restartJavaProject()
function restartNodeProject() function restartNodeProject()
{ {
pwd_path=$1
config_server="$pwd_path/config_server"
project_path="$config_server/project_path.sh"
projects=(`node $config_server/get_project_config.js -type node -attr name`) projects=(`node $config_server/get_project_config.js -type node -attr name`)
for project in ${projects[@]} for project in ${projects[@]}
do do
...@@ -97,6 +105,10 @@ function restartNodeProject() ...@@ -97,6 +105,10 @@ function restartNodeProject()
function restartPythonProject() function restartPythonProject()
{ {
pwd_path=$1
config_server="$pwd_path/config_server"
project_path="$config_server/project_path.sh"
projects=(`node $config_server/get_project_config.js -type python -attr name`) projects=(`node $config_server/get_project_config.js -type python -attr name`)
for project in ${projects[@]} for project in ${projects[@]}
do do
...@@ -170,20 +182,20 @@ function restartUiProject() ...@@ -170,20 +182,20 @@ function restartUiProject()
# } # }
if [ "$project_type" = "java" ]; then if [ "$project_type" = "java" ]; then
restartJavaProject restartJavaProject pwd_path
elif [ "$project_type" = "node" ]; then elif [ "$project_type" = "node" ]; then
restartNodeProject restartNodeProject pwd_path
elif [ "$project_type" = "python" ]; then elif [ "$project_type" = "python" ]; then
restartPythonProject restartPythonProject pwd_path
elif [ "$project_type" = "ui" ]; then elif [ "$project_type" = "ui" ]; then
restartUiProject restartUiProject pwd_path
else else
echo "***restart java***" echo "***restart java***"
restartJavaProject $ip restartJavaProject pwd_path
echo "***restart python***" echo "***restart python***"
restartPythonProject $ip restartPythonProject pwd_path
echo "***restart node***" echo "***restart node***"
restartNodeProject $ip restartNodeProject pwd_path
echo "***restart ui***" echo "***restart ui***"
restartUiProject $ip restartUiProject pwd_path
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