Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
49ab5249
Commit
49ab5249
authored
Aug 11, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5f462fc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
5_restart_by_name.sh
qa_shell_script/5_restart_by_name.sh
+4
-2
No files found.
qa_shell_script/5_restart_by_name.sh
View file @
49ab5249
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment