bugfix on .env and on main.go
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user