Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions api/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ SMTP_PORT=

APP_URL=
APP_NAME=
APP_LOGO_URL=
APP_PORT=8000
APP_HOST=0.0.0.0

DATABASE_URL
DATABASE_URL=
4 changes: 2 additions & 2 deletions api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"os"

"fmt"
_ "github.com/NdoleStudio/httpsms/docs"
"github.com/NdoleStudio/httpsms/pkg/di"
)
Expand Down Expand Up @@ -33,5 +33,5 @@ func main() {
}

container := di.NewContainer("http-sms", Version)
container.Logger().Info(container.App().Listen(":8000").Error())
container.Logger().Info(container.App().Listen(fmt.Sprintf("%s:%s", os.Getenv("APP_HOST"), os.Getenv("APP_PORT"))).Error())
}