From e2fd487597d7dc02c0f28ecc531febe7987532a0 Mon Sep 17 00:00:00 2001 From: Evan Langlais Date: Tue, 2 Apr 2019 12:32:27 -0400 Subject: [PATCH] Modifying folder back to original as that was not the problem, changing mysql config file to be locally close to program --- gateway.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway.go b/gateway.go index 34b059a..76958bc 100644 --- a/gateway.go +++ b/gateway.go @@ -1,7 +1,7 @@ package main import ( - avro "Gateway Server/model" + avro "Gateway-Server/model" "bytes" "context" "database/sql" @@ -45,7 +45,7 @@ func main() { } func dbConnect() { - sqlConf, err := ioutil.ReadFile("/root/.mysql_goconf") // Read the db config file + sqlConf, err := ioutil.ReadFile(".mysql_goconf") // Read the db config file if err != nil { fmt.Printf("Error reading MySQL config file: %v\n", err) os.Exit(1) // If we can't connect to the database there's not much point in continuing