Skip to content

rails db:migrate fails #1

@ufukayyildiz

Description

@ufukayyildiz

Hi,

Thank you for this app.

When i run
rails db:migrate
I get

rails db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:load_config
** Execute db:migrate
rails aborted!
PG::ConnectionBad: could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5433?
/home/ubuntu/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:58:in initialize' /home/ubuntu/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:58:in new'
/home/ubuntu/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/pg-1.2.3/lib/pg.rb:58:in `connect'

`

What is the problem? Could you please help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions