This commit is contained in:
Atridad Lahiji 2024-06-27 22:14:37 -06:00
parent 256cff93bc
commit b2843ff8b0
No known key found for this signature in database

View file

@ -24,14 +24,7 @@ var PublicFS embed.FS
func main() {
// Load environment variables
err := godotenv.Load(".env")
if err != nil {
// If loading .env fails, try loading stack.env
err = godotenv.Load("stack.env")
if err != nil {
log.Fatal("Error loading environment file")
}
}
godotenv.Load(".env")
// Initialize the database connection pool
postgresHost := os.Getenv("POSTGRES_HOST")