Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WebBack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
websystem
WebBack
Commits
fb3e1641
Commit
fb3e1641
authored
3 months ago
by
세현 임
Browse files
Options
Downloads
Patches
Plain Diff
refeat: 브랜치 복구
parent
7bacfcd8
No related branches found
Branches containing commit
No related tags found
1 merge request
!43
배포코드 master브랜치로
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
start2.sh
+0
-35
0 additions, 35 deletions
start2.sh
with
2 additions
and
35 deletions
.gitignore
+
2
−
0
View file @
fb3e1641
...
...
@@ -6,3 +6,5 @@ app.js
output.log
weblog.log
start.sh
start2.sh
This diff is collapsed.
Click to expand it.
start2.sh
deleted
100755 → 0
+
0
−
35
View file @
7bacfcd8
#!/bin/bash
# Define application file names
APP_JS
=
"app.js"
WS_SERVER_JS
=
"wsServer.js"
git pull origin deploy
# Find and kill processes for app.js
APP_PID
=
$(
pgrep
-f
"node .*
${
APP_JS
}
"
)
if
[
-n
"
$APP_PID
"
]
;
then
echo
"Stopping
${
APP_JS
}
with PID:
$APP_PID
"
kill
-9
"
$APP_PID
"
else
echo
"No running process found for
${
APP_JS
}
"
fi
# Find and kill processes for wsServer.js
WS_SERVER_PID
=
$(
pgrep
-f
"node .*
${
WS_SERVER_JS
}
"
)
if
[
-n
"
$WS_SERVER_PID
"
]
;
then
echo
"Stopping
${
WS_SERVER_JS
}
with PID:
$WS_SERVER_PID
"
kill
-9
"
$WS_SERVER_PID
"
else
echo
"No running process found for
${
WS_SERVER_JS
}
"
fi
# Start app.js with nohup
echo
"Starting
${
APP_JS
}
..."
nohup
node
"
${
APP_JS
}
"
>
output.log 2>&1 &
echo
"
${
APP_JS
}
started with PID:
$!
"
# Start wsServer.js with nohup
echo
"Starting
${
WS_SERVER_JS
}
..."
nohup
node
"
${
WS_SERVER_JS
}
"
>
weblog.log 2>&1 &
echo
"
${
WS_SERVER_JS
}
started with PID:
$!
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment