David Kimura PRO said 5 months ago on Kamal Kitchen Sink :
As long as the two droplets are able to communicate with each other (on the same VPC/network) it should work. Can you shell into the postgres server from the rails server's terminal? I am not sure of the firewalling that digital ocean does on the VMs, but the postgres port would need to be exposed to at least the rails VM.