Disable godotenv.
Some checks failed
Build Docker image / build (push) Failing after 43s

This commit is contained in:
Pieter Hollander 2023-12-05 17:54:04 +01:00
parent b44adc4f5d
commit 1015670704
Signed by: pieter
SSH key fingerprint: SHA256:HbX+9cBXsop9SuvL+mELd29sK+7DehFfdVweFVDtMSg

View file

@ -8,7 +8,6 @@ import (
"time"
mqtt "github.com/eclipse/paho.mqtt.golang"
"github.com/joho/godotenv"
_ "github.com/lib/pq"
)
@ -41,10 +40,10 @@ var db *sql.DB
func main() {
// Load environment variables from .env file if it exists
err := godotenv.Load()
if err != nil {
log.Println("Error loading .env file:", err)
}
// err := godotenv.Load()
// if err != nil {
// log.Println("Error loading .env file:", err)
// }
// Connect to PostgreSQL
pgConnStr := os.Getenv("PG_DB")