Skip to content

Commit

Permalink
Exec the startup under bash after the users shell. Fixes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
evanphx committed Aug 1, 2016
1 parent 9c95b8c commit eec2267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/puma/dev/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (a *App) UpdateUsed() {
a.lastUse = time.Now()
}

const executionShell = `# puma-dev generated at runtime
const executionShell = `exec bash -c '
if test -e ~/.powconfig; then
source ~/.powconfig
fi
Expand All @@ -177,7 +177,7 @@ if test -e Gemfile; then
fi
exec puma -C $CONFIG --tag puma-dev:%s -w $WORKERS -t 0:$THREADS -b unix:%s
exec puma -C $CONFIG --tag puma-dev:%s -w $WORKERS -t 0:$THREADS -b unix:%s'
`

func LaunchApp(pool *AppPool, name, dir string) (*App, error) {
Expand Down

0 comments on commit eec2267

Please sign in to comment.