What After the database be added the steps to run the app locally without docker are no longer working since it is missing the steps required to have the database which is required to start the server. This task is for adding the steps required to run it locally with the Postgres installed instead of docker. Why
$ go run cmd/mobile-security-service/main.go |
time="2019-02-20T16:29:01Z" level=info msg="No .env file found, using default values instead." |
panic: failed to connect to SQL database: dial tcp [::1]:5432: connect: connection refused |
|
goroutine 1 [running]: |
main.connectDatabase(0xc000242b18, 0x5, 0x14da458, 0x4, 0x14da6c0, 0x4, 0xc0001d54b0, 0x1, 0x1, 0x0, ...) |
/Users/camilamacedo/go/src/github.com/aerogear/mobile-security-service/cmd/mobile-security-service/main.go:81 +0x1a6 |
main.main() |
/Users/camilamacedo/go/src/github.com/aerogear/mobile-security-service/cmd/mobile-security-service/main.go:47 +0xd5 |
exit status 2
|
|