File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ def _get_command(self):
406406 return ''
407407 try :
408408 # ensure they cannot break out and run commands on the host
409- return "env '{}'" .format (self .release .build .procfile [self .type ])
409+ return "bash -c '{}'" .format (self .release .build .procfile [self .type ])
410410 # if the key is not present or if a parent attribute is None
411411 except (KeyError , TypeError ):
412412 return 'start {}' .format (self .type )
Original file line number Diff line number Diff line change @@ -461,9 +461,9 @@ def test_command_good(self):
461461 release = release ,
462462 type = 'web' ,
463463 num = 1 )
464- self .assertEqual (c ._command , "env 'node server.js'" )
464+ self .assertEqual (c ._command , "bash -c 'node server.js'" )
465465 c .type = 'worker'
466- self .assertEqual (c ._command , "env 'node worker.js'" )
466+ self .assertEqual (c ._command , "bash -c 'node worker.js'" )
467467 c .release .build .procfile = None
468468 self .assertEqual (c ._command , 'start worker' )
469469 c .type = 'cmd'
You can’t perform that action at this time.
0 commit comments