Skip to content

Commit 06fea26

Browse files
committed
Fixes #39536 - preserve RAILS_LOG_TO_STDOUT in foreman-rake
1 parent 96ce9e0 commit 06fea26

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

script/foreman-rake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ if [ $# -eq 0 ]; then
1515
elif [ "$USERNAME" = foreman ]; then
1616
RUBYOPT=-W0 RAILS_ENV=production $CMD "$@"
1717
else
18-
runuser - foreman -s /bin/bash -c 'RUBYOPT=-W0 RAILS_ENV=production "$0" "$@"' -- $CMD "$@"
18+
runuser -w RAILS_LOG_TO_STDOUT \
19+
- foreman -s /bin/bash -c 'RUBYOPT=-W0 RAILS_ENV=production "$0" "$@"' -- $CMD "$@"
1920
fi

0 commit comments

Comments
 (0)