Skip to content

Commit

Permalink
Merge pull request #78 from sooraj-sky/main
Browse files Browse the repository at this point in the history
New Release
  • Loading branch information
sooraj-sky authored Jan 21, 2023
2 parents 6646df5 + 0f7c6f6 commit 650f1fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ import (
"gorm.io/driver/postgres"
"gorm.io/gorm"
"log"
"os"
)

func main() {
log.Println("Launching sky-meter")
sentry.SentryInit()
dbconnect := os.Getenv("dbconnect")
if opsgenieSecret == "" {
log.Fatal("Please specify the opsgeniesecret as environment variable, e.g. sooraj@sky:~/go/src/sky-meter$ export dbconnect=host=localhost user=postgres password=postgres dbname=postgres port=5433 sslmode=disable")
}
db, err := gorm.Open(postgres.New(postgres.Config{
DSN: "host=localhost user=postgres password=postgres dbname=postgres port=5433 sslmode=disable",
DSN: dbconnect,
PreferSimpleProtocol: true, // disables implicit prepared statement usage

}), &gorm.Config{})
Expand Down
2 changes: 1 addition & 1 deletion templates/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
display: none !important;
}
</style>
<div class="preheader" style="font-size: 1px; display: none !important;">Mute videos until you’re ready</div>
<div class="preheader" style="font-size: 1px; display: none !important;"> </div>
<table id="backgroundTable" width="100%" cellspacing="0" cellpadding="0" border="0" style="background:#e1e1e1;">
<tr>
<td class="body" align="center" valign="top" style="background:#e1e1e1;" width="100%">
Expand Down

0 comments on commit 650f1fb

Please sign in to comment.