removed .env
This commit is contained in:
parent
7f1eec7810
commit
77231c969b
14
main.go
14
main.go
@ -1,9 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/joho/godotenv"
|
|
||||||
"github.com/rs/cors"
|
"github.com/rs/cors"
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"portfolio/api"
|
"portfolio/api"
|
||||||
"portfolio/database"
|
"portfolio/database"
|
||||||
@ -11,12 +9,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// load .env in runtime environment
|
//// load .env in runtime environment
|
||||||
err := godotenv.Load()
|
//err := godotenv.Load()
|
||||||
if err != nil {
|
//if err != nil {
|
||||||
log.Fatalf(".env not found: %v", err)
|
// log.Fatalf(".env not found: %v", err)
|
||||||
return
|
// return
|
||||||
}
|
//}
|
||||||
|
|
||||||
//connect to database and migrate
|
//connect to database and migrate
|
||||||
database.DB()
|
database.DB()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user