Skip to content

use_sql can not connect to remote server #125

@copyhold

Description

@copyhold

pg_dump is not connecting to remote database

[1] pry(main)> Apartment::Database.create 'en'
   (4.4ms)  CREATE SCHEMA "en"
pg_dump: [archiver (db)] connection to database "..." failed: 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"?
   (1.6ms)  SET search_path = en, public;
pg_dump: [archiver (db)] connection to database "bithub_development" failed: 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"?
   (1.3ms)  SET search_path = en, public;
=> nil
[2] pry(main)> Location.first
  Location Load (19.8ms)  SELECT "locations".* FROM "locations" ORDER BY COALESCEweight,0) DESC LIMIT 1
=> #<City id: 50300, name:.......

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions