Skip to content

Instantly share code, notes, and snippets.

@threetee
Created July 5, 2017 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save threetee/84eb71f028e5bf97954c50c00f7ea691 to your computer and use it in GitHub Desktop.
Save threetee/84eb71f028e5bf97954c50c00f7ea691 to your computer and use it in GitHub Desktop.
redash modification diff
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