We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70dcae2 commit 863dfa5Copy full SHA for 863dfa5
main.go
@@ -17,6 +17,12 @@ import (
17
)
18
19
func main() {
20
+ // Assert authentication
21
+ authToken, ok := os.LookupEnv("LEDGER_AUTH_TOKEN")
22
+ if !ok || authToken == "" {
23
+ log.Fatal("Cannot start the server. Authentication token is not set!!")
24
+ }
25
+
26
db, err := sql.Open("postgres", os.Getenv("DATABASE_URL"))
27
if err != nil {
28
log.Panic("Unable to connect to Database:", err)
0 commit comments