Skip to content

Commit

Permalink
Don't bailout when conf/nginx.d/ does not exist in app.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphoting committed Feb 18, 2013
1 parent 878b901 commit 4926eae
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,13 @@ fi
# Set correct port variable.
erb /app/vendor/nginx/conf/nginx.conf.erb > /app/vendor/nginx/conf/nginx.conf
# Parse .erb into .conf.
for f in /app/conf/nginx.d/*.erb
do
erb "\${f}" > "\${f}.conf"
done
if [ -d /app/conf/nginx.d ]; then
# Parse .erb into .conf.
for f in /app/conf/nginx.d/*.erb
do
erb "\${f}" > "\${f}.conf"
done
fi
# Set NEWRELIC key
if [ -x "/app/local/bin/newrelic-license" ]; then
Expand Down

0 comments on commit 4926eae

Please sign in to comment.