bugfix on .env and on main.go
parent
4d1884f3a4
commit
37e5ed8150
2
.env
2
.env
|
|
@ -1,7 +1,7 @@
|
||||||
# Used when creating a JWT. It can be anything.
|
# Used when creating a JWT. It can be anything.
|
||||||
API_SECRET=nyEX8BZ44KqTXeV2
|
API_SECRET=nyEX8BZ44KqTXeV2
|
||||||
|
|
||||||
API_PORT=3800
|
API_PORT=8111
|
||||||
API_RELEASE="Desenvolvimento"
|
API_RELEASE="Desenvolvimento"
|
||||||
DB_HOST=191.252.214.157
|
DB_HOST=191.252.214.157
|
||||||
DB_DRIVER=postgres
|
DB_DRIVER=postgres
|
||||||
|
|
|
||||||
2
main.go
2
main.go
|
|
@ -31,7 +31,7 @@ func main() {
|
||||||
routes.Setup(app)
|
routes.Setup(app)
|
||||||
|
|
||||||
log.Println("Server started in port " + os.Getenv("API_PORT"))
|
log.Println("Server started in port " + os.Getenv("API_PORT"))
|
||||||
if err := app.Listen(":3800"); err != nil {
|
if err := app.Listen(":" + os.Getenv("API_PORT")); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue