Commit 3f36ee35 authored by Nico Baruna Putra's avatar Nico Baruna Putra

add custom for docker restart

parent 278d0a38
......@@ -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
......@@ -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)
}
......
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