Skip to content

Commit

Permalink
Load .powconfig as well
Browse files Browse the repository at this point in the history
This is slightly different than how pow uses .powconfig. It uses it to
configure itself via env variables but puma-dev has a bunch of command
line options to do that instead.

So we still load it because folks use .powconfig as a way to set
variables that are used in all apps, but the POW_* variables won't have
any effect at present.
  • Loading branch information
evanphx committed Jul 29, 2016
1 parent ce23355 commit 7b22ae7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/puma/dev/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ func (a *App) UpdateUsed() {
}

const executionShell = `# puma-dev generated at runtime
if test -e ~/.powconfig; then
source ~/.powconfig
fi
if test -e .env; then
source .env
fi
Expand Down

0 comments on commit 7b22ae7

Please sign in to comment.