I am trying to host Dgraph on heroku, and since ports are dynamically allocated in heroku, I have created two separate dynos for zero and alpha.
and this is my zero server
FROM dgraph/dgraph:latest CMD ["sh","-c","dgraph zero --my=0.0.0.0:$PORT"]
this is my alpha server
FROM dgraph/dgraph:latest CMD ["sh","-c","dgraph alpha --my=0.0.0.0:$PORT --zero=https://sampleurl.herokuapp.com:27955"]
But I keep getting this error
16 pool.go:311] CONN: Unable to connect with https://sampleurl.herokuapp.com:27955 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: address https://sampleurl.herokuapp.com:27955: too many colons in address"
What am I supposed to do with the “too many colons in address part”?