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

add custom for docker restart

parent 278d0a38
...@@ -7,4 +7,5 @@ ...@@ -7,4 +7,5 @@
MYFILE="CHaT-API-error1.log" MYFILE="CHaT-API-error1.log"
KEYWORD="SequelizeConnectionAcquireTimeoutError" KEYWORD="SequelizeConnectionAcquireTimeoutError"
API_URL="status" API_URL="status"
BASE_URL="https://moca-be.banpuindo.co.id/" BASE_URL="https://moca-be.banpuindo.co.id/"
\ No newline at end of file COMMAND="docker restart spv---backend"
\ No newline at end of file
...@@ -98,7 +98,7 @@ func Shellout(command string) (error, string, string) { ...@@ -98,7 +98,7 @@ func Shellout(command string) (error, string, string) {
} }
func Native() { func Native() {
err, out, errout := Shellout("pm2 restart 0") err, out, errout := Shellout(os.Getenv("COMMAND"))
if err != nil { if err != nil {
log.Printf("error: %v\n", err) 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