bugfix on .env and on main.go

development
Nilo Roberto C Paim 2023-08-15 14:56:02 -03:00
parent 4d1884f3a4
commit 37e5ed8150
2 changed files with 2 additions and 2 deletions

2
.env
View File

@ -1,7 +1,7 @@
# Used when creating a JWT. It can be anything.
API_SECRET=nyEX8BZ44KqTXeV2
API_PORT=3800
API_PORT=8111
API_RELEASE="Desenvolvimento"
DB_HOST=191.252.214.157
DB_DRIVER=postgres

View File

@ -31,7 +31,7 @@ func main() {
routes.Setup(app)
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)
}
}