Browse Source

Add option to debug if end user wants (#17)

* Add option to debug if end user wants

Added option for NGROK_DEBUG variable just incase someone wants the standard layout instead

* Modified as -n was not working properly

* Update entrypoint.sh
Sean Dietrich 7 years ago
parent
commit
ce878ba0e0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      entrypoint.sh

+ 3 - 1
entrypoint.sh

@@ -62,7 +62,9 @@ elif [ -n "$NGROK_USERNAME" ] || [ -n "$NGROK_PASSWORD" ]; then
   fi
 fi
 
-ARGS="$ARGS -log stdout"
+if [ -n "$NGROK_DEBUG" ]; then
+    ARGS="$ARGS -log stdout"
+fi
 
 # Set the port.
 if [ -z "$NGROK_PORT" ]; then