Commit 49ab5249 authored by tywldx's avatar tywldx

fix

parent 5f462fc5
...@@ -74,14 +74,16 @@ function restartNodeProject() ...@@ -74,14 +74,16 @@ function restartNodeProject()
{ {
project=$1 project=$1
desc=`node $config_server/get_project_config.js -name $project -attr desc` desc=`node $config_server/get_project_config.js -name $project -attr desc`
stop_command=`node $config_server/get_project_config.js -name $project -attr command2` stop_command_=`node $config_server/get_project_config.js -name $project -attr command2`
stop_command=${stop_command_//\^/ }
sh $config_server/show_info.sh $project 重新启动 $desc $2 sh $config_server/show_info.sh $project 重新启动 $desc $2
cd $project_path/$project cd $project_path/$project
$stop_command $stop_command
# forever stop $project # forever stop $project
# forever stop $project-www # forever stop $project-www
# pm2 stop $project # pm2 stop $project
start_command=`node $config_server/get_project_config.js -name $project -attr command` start_command_=`node $config_server/get_project_config.js -name $project -attr command`
start_command=${start_command_//\^/ }
$start_command $start_command
if [ $? -ne 0 ] if [ $? -ne 0 ]
then then
......
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