Merge pull request #1322 from scmmishra/fix/redis-default-url
fix: generated redis URL string
This commit is contained in:
		@@ -82,9 +82,9 @@ class General extends Component
 | 
			
		||||
    public function getDbUrl() {
 | 
			
		||||
 | 
			
		||||
        if ($this->database->is_public) {
 | 
			
		||||
            $this->db_url = "redis://{$this->database->redis_password}@{$this->database->destination->server->getIp}:{$this->database->public_port}/0";
 | 
			
		||||
            $this->db_url = "redis://:{$this->database->redis_password}@{$this->database->destination->server->getIp}:{$this->database->public_port}/0";
 | 
			
		||||
        } else {
 | 
			
		||||
            $this->db_url = "redis://{$this->database->redis_password}@{$this->database->uuid}:5432/0";
 | 
			
		||||
            $this->db_url = "redis://:{$this->database->redis_password}@{$this->database->uuid}:6379/0";
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    public function render()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user