Commit 348afa4d authored by QA-甘 盛聪's avatar QA-甘 盛聪

update

parent c3ab8795
...@@ -6,8 +6,6 @@ config_server="$pwd_path/config_server" ...@@ -6,8 +6,6 @@ config_server="$pwd_path/config_server"
project_path=`cat $config_server/project_path.sh` project_path=`cat $config_server/project_path.sh`
config_path=`cat $config_server/config_path.sh` config_path=`cat $config_server/config_path.sh`
#echo -e "\033[40;32m 执行2_get_code_by_name \033[0m"
cd $project_path cd $project_path
project_folder=`find ./ -maxdepth 1 -name "$project_name"` project_folder=`find ./ -maxdepth 1 -name "$project_name"`
if [ -n "$project_folder" ];then if [ -n "$project_folder" ];then
......
...@@ -50,9 +50,9 @@ elif [ "$project_type" = "python" ] ...@@ -50,9 +50,9 @@ elif [ "$project_type" = "python" ]
then then
getCode python getCode python
else else
getCode java
getCode ui getCode ui
getCode node getCode node
getCode python getCode python
getCode java
fi fi
\ No newline at end of file
...@@ -24,10 +24,10 @@ else ...@@ -24,10 +24,10 @@ else
if $is_public_ip && [ -n "$is_public_ip" ] if $is_public_ip && [ -n "$is_public_ip" ]
then then
echo "-------link-$project--$config_path/public/$project_type/$project.*----/home/quant_group/$project/$file " echo "-------link-$project--$config_path/public/$project_type/$project.*----/home/quant_group/$project/$file "
cp $config_path/public/$project_type/${project}.* /home/quant_group/${project}/$file cp -r $config_path/public/$project_type/${project}.* /home/quant_group/${project}/$file
else else
echo "-------link-$project--$config_path/$project_type/$project.*----/home/quant_group/$project/$file " echo "-------link-$project--$config_path/$project_type/$project.*----/home/quant_group/$project/$file "
cp $config_path/$project_type/${project}.* /home/quant_group/${project}/$file cp -r $config_path/$project_type/${project}.* /home/quant_group/${project}/$file
fi fi
else else
if $is_public_ip && [ -n "$is_public_ip" ] if $is_public_ip && [ -n "$is_public_ip" ]
......
...@@ -40,7 +40,6 @@ function buildJavaProject() ...@@ -40,7 +40,6 @@ function buildJavaProject()
sed -i "${num}s/1.0.[0-9].[0-9]/1.0.0.${suffix}-SNAPSHOT/" $project_path/$project/pom.xml sed -i "${num}s/1.0.[0-9].[0-9]/1.0.0.${suffix}-SNAPSHOT/" $project_path/$project/pom.xml
fi fi
# cd ./target
echo "mvn clean package -P${profile} -Dmaven.test.skip=true" echo "mvn clean package -P${profile} -Dmaven.test.skip=true"
mvn clean package -P${profile} -Dmaven.test.skip=true mvn clean package -P${profile} -Dmaven.test.skip=true
mv $project_path/$project/target/*.jar $project_path/$project/$project.jar mv $project_path/$project/target/*.jar $project_path/$project/$project.jar
...@@ -62,9 +61,9 @@ function buildUiProject() ...@@ -62,9 +61,9 @@ function buildUiProject()
if $is_public_ip && [ -n "$is_public_ip" ] if $is_public_ip && [ -n "$is_public_ip" ]
then then
cp $config_path/public/ui/$project.* $project_path/$project/$config_file cp -r $config_path/public/ui/$project.* $project_path/$project/$config_file
else else
cp $config_path/ui/$project.* $project_path/$project/$config_file cp -r $config_path/ui/$project.* $project_path/$project/$config_file
fi fi
imagemin_dist=`grep -n -A3 "imagemin" *.js|awk '{print $1}'` imagemin_dist=`grep -n -A3 "imagemin" *.js|awk '{print $1}'`
...@@ -126,7 +125,7 @@ function buildPythonProject() ...@@ -126,7 +125,7 @@ function buildPythonProject()
python ${setup_path_temp} install python ${setup_path_temp} install
#第四步 关联配置文件 #第四步 关联配置文件
rm -rf $config_file rm -rf $config_file
ln -s $config_path/python/$project.* $config_file ln -s $config_path/python/$project.* $config_file
} }
if [ "$project_type" = "java" ]; then if [ "$project_type" = "java" ]; then
......
...@@ -37,9 +37,11 @@ function restartJavaProject() ...@@ -37,9 +37,11 @@ function restartJavaProject()
echo "no have" echo "no have"
if $is_public_ip && [ -n "$is_public_ip" ] if $is_public_ip && [ -n "$is_public_ip" ]
then then
rm -rf /home/quant_group/${project}/application.properties
echo "ln -s $config_path/public/java/${project}.* /home/quant_group/${project}/application.properties" echo "ln -s $config_path/public/java/${project}.* /home/quant_group/${project}/application.properties"
ln -s $config_path/public/java/${project}.* /home/quant_group/${project}/application.properties ln -s $config_path/public/java/${project}.* /home/quant_group/${project}/application.properties
else else
rm -rf /home/quant_group/${project}/application.properties
echo "ln -s $config_path/java/${project}.* /home/quant_group/${project}/application.properties" echo "ln -s $config_path/java/${project}.* /home/quant_group/${project}/application.properties"
ln -s $config_path/java/${project}.* /home/quant_group/${project}/application.properties ln -s $config_path/java/${project}.* /home/quant_group/${project}/application.properties
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