Skip to content

Commit

Permalink
Add TWFY_VOTES_URL to docker config
Browse files Browse the repository at this point in the history
Populate the php setting from an
env var.
  • Loading branch information
ajparsons committed Feb 9, 2024
1 parent 3d8823b commit 306fa94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'!" \
Expand Down
2 changes: 1 addition & 1 deletion conf/general-example
Original file line number Diff line number Diff line change
Expand Up @@ -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", "");


// *******************************************************************************
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 306fa94

Please sign in to comment.