Skip to content

Commit 7b22ae7

Browse files
committed
Load .powconfig as well
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.
1 parent ce23355 commit 7b22ae7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/puma/dev/app.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ func (a *App) UpdateUsed() {
181181
}
182182

183183
const executionShell = `# puma-dev generated at runtime
184+
if test -e ~/.powconfig; then
185+
source ~/.powconfig
186+
fi
187+
184188
if test -e .env; then
185189
source .env
186190
fi

0 commit comments

Comments
 (0)