Created
July 5, 2017 19:04
-
-
Save threetee/84eb71f028e5bf97954c50c00f7ea691 to your computer and use it in GitHub Desktop.
redash modification diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bin/docker-entrypoint b/bin/docker-entrypoint | |
index 6bd0707..c98f362 100755 | |
--- a/bin/docker-entrypoint | |
+++ b/bin/docker-entrypoint | |
@@ -1,6 +1,9 @@ | |
#!/bin/bash | |
set -e | |
+REDASH_HTTP_IP=${REDASH_HTTP_IP:-0.0.0.0} | |
+REDASH_HTTP_PORT=${REDASH_HTTP_PORT:-5000} | |
+ | |
worker() { | |
WORKERS_COUNT=${WORKERS_COUNT:-2} | |
QUEUES=${QUEUES:-queries,scheduled_queries,celery} | |
@@ -19,7 +22,7 @@ scheduler() { | |
} | |
server() { | |
- exec /usr/local/bin/gunicorn -b 0.0.0.0:5000 --name redash -w4 redash.wsgi:app | |
+ exec /usr/local/bin/gunicorn -b ${REDASH_HTTP_IP}:${REDASH_HTTP_PORT} --name redash -w4 redash.wsgi:app | |
} | |
help() { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment