diff --git a/bin/docker-entrypoint.sh b/bin/docker-entrypoint.sh index ba80f0d64a..27acd9de56 100755 --- a/bin/docker-entrypoint.sh +++ b/bin/docker-entrypoint.sh @@ -14,6 +14,7 @@ sed -r \ -e 's!^(.*"OPTION_TWFY_DB_PASS", *)"[^"]*"!'"\\1'password'!" \ -e 's!^(.*"OPTION_TWFY_DB_NAME", *)"[^"]*"!'"\\1'twfy'!" \ -e 's!^(.*"OPTION_TWFY_MEMCACHED_HOST", *)"[^"]*"!'"\\1'memcache'!" \ + -e 's!^(.*"TWFY_VOTES_URL", *)"[^"]*"!'"\\1'$TWFY_VOTES_URL'!" \ -e 's!^(.*"BASEDIR", *)"[^"]*"!'"\\1'/twfy/www/docs'!" \ -e 's!^(.*"DOMAIN", *)"[^"]*"!'"\\1'localhost'!" \ -e 's!^(.*"COOKIEDOMAIN", *)"[^"]*"!'"\\1'localhost'!" \ diff --git a/conf/general-example b/conf/general-example index 8744fdb276..8adf28b4a2 100644 --- a/conf/general-example +++ b/conf/general-example @@ -125,7 +125,7 @@ define ("RECESSFILE","https://www.theyworkforyou.com/pwdata/parl-recesses.txt"); // AND amend your global php.ini to 'allow_url_fopen = On' //define ("RECESSFILE", RAWDATA . "/parl-recesses.txt"); -define('TWFY_VOTES_URL', ''); +define("TWFY_VOTES_URL", ""); // ******************************************************************************* diff --git a/docker-compose.yml b/docker-compose.yml index 344750b49f..7983aa6366 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,7 @@ services: TWFY_TEST_DB_NAME: twfy TWFY_TEST_DB_USER: twfy TWFY_TEST_DB_PASS: password + TWFY_VOTES_URL: ${TWFY_VOTES_URL} DEV_MODE: 'true' WSL_IP: ports: