Private
Public Access
feat: añadido docker compose y los dockerfile para las builds
This commit is contained in:
1 parent
b9b04db154
commit
2e18319893
10 files changed
+300
-67
No files matched your search
@@ -2,7 +2,6 @@ package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/url"
|
||||
"os"
|
||||
|
||||
@@ -16,10 +15,10 @@ var DB *gorm.DB
|
||||
|
||||
func InitDB() error {
|
||||
var err error
|
||||
err = godotenv.Load()
|
||||
if err != nil {
|
||||
log.Fatal("Error loading .env file")
|
||||
}
|
||||
_ = godotenv.Load()
|
||||
// if err != nil {
|
||||
// log.Fatal("Error loading .env file")
|
||||
// }
|
||||
|
||||
pass := url.QueryEscape(os.Getenv("DBPASS"))
|
||||
|
||||
|
||||
Reference in new issue
Block a user