#!/bin/bash
project=$1
config_server=$2
project_path=$3
ip=$4
config_path=`cat $config_server/config_path.sh`
node4_path=`cat $config_server/node_4_path.sh`
node7_path=`cat $config_server/node_7_path.sh`

project=$1
params=`node $config_server/get_project_config.js  -name $project -attr desc/config_file/command/node_version`
params_arry=(${params//|/ })

desc=${params_arry[0]}
config_file=${params_arry[1]}
command=${params_arry[2]//\^/ }
node_version=${params_arry[3]}

sh $config_server/show_info.sh $project BUILD $desc $ip
# 第一步  将nginx项目的所有文件进行打包
cd $project_path/$project
#第二步  关联配置文件
#rm -rf ./$config_file
#echo "------ln -s $config_path/node/$project.*  ./$config_file"
#ln -s $config_path/node/$project.*  ./$config_file
npm config set "@types:registry" http://registry.npmjs.org/
npm --registry http://172.16.3.15:4873 install
