Skip to content

Commit 4917537

Browse files
committed
chore: only overwrite ports, wich have no default
1 parent c4cf7ab commit 4917537

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

internal/core/services/port_service.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ func (p *PortMonitor) SyncPortEnv(file *domain.File) []*domain.AugmentedPort {
5959
var augmentedPorts []*domain.AugmentedPort
6060

6161
for _, port := range ports {
62+
63+
//TODO: get rid of this and set this directly in scroll.yaml, when templating is implemented
6264
portEnvName := fmt.Sprintf("DRUID_PORT_%s", strings.ToUpper(port.Name))
6365
envPort := os.Getenv(portEnvName)
6466

65-
if envPort != "" {
67+
if envPort != "" && port.Port == 0 {
6668
portInt, err := strconv.Atoi(envPort)
6769
if err != nil {
6870
port.Port = portInt

0 commit comments

Comments
 (0)