We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4cf7ab commit 4917537Copy full SHA for 4917537
1 file changed
internal/core/services/port_service.go
@@ -59,10 +59,12 @@ func (p *PortMonitor) SyncPortEnv(file *domain.File) []*domain.AugmentedPort {
59
var augmentedPorts []*domain.AugmentedPort
60
61
for _, port := range ports {
62
+
63
+ //TODO: get rid of this and set this directly in scroll.yaml, when templating is implemented
64
portEnvName := fmt.Sprintf("DRUID_PORT_%s", strings.ToUpper(port.Name))
65
envPort := os.Getenv(portEnvName)
66
- if envPort != "" {
67
+ if envPort != "" && port.Port == 0 {
68
portInt, err := strconv.Atoi(envPort)
69
if err != nil {
70
port.Port = portInt
0 commit comments