PLZ
This commit is contained in:
parent
256cff93bc
commit
b2843ff8b0
1 changed files with 1 additions and 8 deletions
9
main.go
9
main.go
|
@ -24,14 +24,7 @@ var PublicFS embed.FS
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Load environment variables
|
// Load environment variables
|
||||||
err := godotenv.Load(".env")
|
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")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Initialize the database connection pool
|
// Initialize the database connection pool
|
||||||
postgresHost := os.Getenv("POSTGRES_HOST")
|
postgresHost := os.Getenv("POSTGRES_HOST")
|
||||||
|
|
Loading…
Add table
Reference in a new issue