Use redis-replica instead of redis-slave in GUI
This commit is contained in:
parent
2b1e860e04
commit
07b0cacf47
|
@ -23,7 +23,7 @@ if (isset($_GET['cmd']) === true) {
|
||||||
$client->set($_GET['key'], $_GET['value']);
|
$client->set($_GET['key'], $_GET['value']);
|
||||||
print('{"message": "Updated"}');
|
print('{"message": "Updated"}');
|
||||||
} else {
|
} else {
|
||||||
$host = 'redis-slave';
|
$host = 'redis-replica';
|
||||||
if (getenv('GET_HOSTS_FROM') == 'env') {
|
if (getenv('GET_HOSTS_FROM') == 'env') {
|
||||||
$host = getenv('REDIS_SLAVE_SERVICE_HOST');
|
$host = getenv('REDIS_SLAVE_SERVICE_HOST');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue