Skip to content

Commit

Permalink
pass all env vars to the app by configuring apache to pass everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Belo committed Jan 23, 2012
1 parent 8074a5d commit c3d05de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ echo " done. v$PHP_VERSION"

cat >>boot.sh <<EOF
sed -i 's/Listen 80/Listen '\$PORT'/' /app/apache/conf/httpd.conf
for var in \`env|cut -f1 -d=\`; do
echo "PassEnv \$var" >> /app/apache/conf/httpd.conf;
done
export LD_LIBRARY_PATH=/app/php/ext
echo "Launching apache"
exec /app/apache/bin/httpd -X
Expand Down
5 changes: 0 additions & 5 deletions conf/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,3 @@ DefaultType text/plain
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>


PassEnv DATABASE_URL
PassEnv FACEBOOK_APP_ID
PassEnv FACEBOOK_SECRET

0 comments on commit c3d05de

Please sign in to comment.