We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 463f9df commit fb27f4fCopy full SHA for fb27f4f
docker/entrypoint.sh
@@ -10,7 +10,9 @@ if [ "$TEST_DB_AUTO_MIGRATE" == "true" ]; then
10
fi
11
12
# host ip needed by application for better_errors whitelisting to work
13
-export HOST_IP=`/sbin/ip route|awk '/default/ { print $3 }'`
+if [ "$RAILS_ENV" == "development" ]; then
14
+ export HOST_IP=`/sbin/ip route|awk '/default/ { print $3 }'`
15
+fi
16
17
printenv | sed "s/^\([[:alnum:]_]*\)=\(.*\)$/export \1='\2'/" >/var/www/.profile
18
0 commit comments