Skip to content

Commit

Permalink
Fix docker entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
esoterik committed Mar 12, 2021
1 parent 463f9df commit fb27f4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ if [ "$TEST_DB_AUTO_MIGRATE" == "true" ]; then
fi

# host ip needed by application for better_errors whitelisting to work
export HOST_IP=`/sbin/ip route|awk '/default/ { print $3 }'`
if [ "$RAILS_ENV" == "development" ]; then
export HOST_IP=`/sbin/ip route|awk '/default/ { print $3 }'`
fi

printenv | sed "s/^\([[:alnum:]_]*\)=\(.*\)$/export \1='\2'/" >/var/www/.profile

Expand Down

0 comments on commit fb27f4f

Please sign in to comment.