Skip to content

Commit

Permalink
fix(SA): set bffPort from APIPort if null
Browse files Browse the repository at this point in the history
  • Loading branch information
vbeaucha committed Aug 17, 2023
1 parent ed01708 commit f78446f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion APP/ogree_app_backend/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,13 @@ func dockerCreateTenant(newTenant tenant) string {

// Default values, empty vars not accepted on docker compose
newTenant.BffApiListFile = "./bff_api_list.json"
newTenant.BffPort = newTenant.ApiPort

if newTenant.HasBff {
args = append(args, "--profile")
args = append(args, "arango")
if newTenant.BffPort == "" {
// Set API Port to BFF Port + 1
newTenant.BffPort = newTenant.ApiPort
port, _ := strconv.Atoi(newTenant.ApiPort)
newTenant.ApiPort = strconv.Itoa(port + 1)
}
Expand Down

0 comments on commit f78446f

Please sign in to comment.