File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -331,7 +331,9 @@ def _scale_pods(self, scale_types):
331331 # http://docs.deis.io/en/latest/using_deis/process-types/#web-vs-cmd-process-types
332332 routable = True if scale_type in ['web' , 'cmd' ] else False
333333 # fetch application port and inject into ENV Vars as needed
334- envs ['PORT' ] = release .get_port (routable )
334+ port = release .get_port (routable )
335+ if port :
336+ envs ['PORT' ] = port
335337
336338 kwargs = {
337339 'memory' : release .config .memory ,
@@ -384,7 +386,9 @@ def deploy(self, release):
384386 # http://docs.deis.io/en/latest/using_deis/process-types/#web-vs-cmd-process-types
385387 routable = True if scale_type in ['web' , 'cmd' ] else False
386388 # fetch application port and inject into ENV vars as needed
387- envs ['PORT' ] = release .get_port (routable )
389+ port = release .get_port (routable )
390+ if port :
391+ envs ['PORT' ] = port
388392
389393 deploys [scale_type ] = {
390394 'memory' : release .config .memory ,
You can’t perform that action at this time.
0 commit comments