diff --git a/.gitignore b/.gitignore index 108221b..7023929 100644 --- a/.gitignore +++ b/.gitignore @@ -24,5 +24,4 @@ _testmain.go *.prof # Application specific -gin-bin - +.env diff --git a/serve.sh b/serve.sh index 70e4e73..6658e84 100755 --- a/serve.sh +++ b/serve.sh @@ -1,6 +1,11 @@ #!/bin/sh +if [ -f .env ]; then + source .env +fi + SECRET=secret \ PGDATABASE=bactdbtest \ DOMAINS="http://localhost:4200" \ +ACCOUNT_KEYS=$ACCOUNT_KEYS \ bash -c 'go run *.go serve'