title: Heroku: PG::ConnectionBad: could not connect to server: No such file or directory
body: <p>I´m having some trouble sharing a postgres database between my two Heroku apps. </p>
  
  <p>I want the database of App A to be shared with App B, so I attached the App A postgres to App B, then I deleted App B´s original database.</p>
  
  <p>However, trying to connect to from App B to the database results in this message:</p>
  
  <blockquote>
    <p>PG::ConnectionBad: could not connect to server: No such file or
    directory     Is the server running locally and accepting     connections on
    Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?</p>
  </blockquote>
  
  <p>I have tried to restart the dynos and such but still no luck. Does anyone have any ideas on how to solve this?</p>