Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
PM2 watcher
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Nico Baruna Putra
PM2 watcher
Commits
3f36ee35
Commit
3f36ee35
authored
Aug 07, 2024
by
Nico Baruna Putra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add custom for docker restart
parent
278d0a38
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
.env
.env
+2
-1
index.go
index.go
+1
-1
No files found.
.env
View file @
3f36ee35
...
...
@@ -8,3 +8,4 @@
KEYWORD="SequelizeConnectionAcquireTimeoutError"
API_URL="status"
BASE_URL="https://moca-be.banpuindo.co.id/"
COMMAND="docker restart spv---backend"
\ No newline at end of file
index.go
View file @
3f36ee35
...
...
@@ -98,7 +98,7 @@ func Shellout(command string) (error, string, string) {
}
func
Native
()
{
err
,
out
,
errout
:=
Shellout
(
"pm2 restart 0"
)
err
,
out
,
errout
:=
Shellout
(
os
.
Getenv
(
"COMMAND"
)
)
if
err
!=
nil
{
log
.
Printf
(
"error: %v
\n
"
,
err
)
}
...
...
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