Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rails db:migrate fails #1

Open
ufukayyildiz opened this issue Mar 5, 2021 · 0 comments
Open

rails db:migrate fails #1

ufukayyildiz opened this issue Mar 5, 2021 · 0 comments

Comments

@ufukayyildiz
Copy link

ufukayyildiz commented Mar 5, 2021

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?

@ufukayyildiz ufukayyildiz changed the title cannot load such file -- rubygems.rb (LoadError) rails db:migrate fails Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant