Skip to content

Commit

Permalink
Set PS env var for each process (#156)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrey Novikov <envek@envek.name>
  • Loading branch information
blaedj and Envek authored Mar 5, 2024
1 parent 9640dcd commit 0bc4fcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions start/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func (c *command) createScriptFile(e *procfileEntry, shell string, setPort bool)
if setPort {
fmt.Fprintf(scriptFile, "export PORT=%d\n", e.Port)
}
fmt.Fprintf(scriptFile, "export PS=%s\n", e.Name)
fmt.Fprintln(scriptFile, e.Command)

utils.FatalOnErr(scriptFile.Chmod(0744))
Expand Down

0 comments on commit 0bc4fcb

Please sign in to comment.