

#POSTGRES APP RAILS CANT CONNECT INSTALL#
Yesterday, I realized that maybe I shouldn't even be installing it on Windows since you install everything within Ubuntu, right? I don't use the GUI for it, just the terminal.

At this point I had postgresql installed on Windows, so was able to go find that.

When this first happened, I found one answer that said maybe it was just simply the PID file that didn't get deleted.
#POSTGRES APP RAILS CANT CONNECT FULL#
(See full trace by running task with -trace) PG::ConnectionBad: connection to server at " 127.0.0.1", port 5432 failed: Connection refused Please check your configuration.ĪctiveRecord::ConnectionNotEstablished: connection to server at " 127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?Ĭouldn't create 'app_development' database. Now I'm getting the below output in the terminal (let me know if I should post the whole thing with -trace):Ĭonnection to server at " 127.0.0.1", port 5432 failed: Connection refused That's all I do to the file and it usually worked before. I also then scroll all the way down to production and comment out the username and password lines there. This is all I've ever added to the database.yml since bootcamp taught this. Change the database.yml as I'll show below to have username: postgres, password: password, host: localhost. I can get to the point where creating a whole rails project works all the way through perfectly. but it seemed to be a decent solution for a terminal and one that had decent reviews by devs. Not too experienced still with this type of stuff. Trying to get excited and back into it to actually do something with it (long story short). I'm still a beginner developer since finishing bootcamp about 2 years ago now. I'm using the Ubuntu 22.04 terminal only that I downloaded from the Microsoft Store. I'm wondering if someone more experienced will be able to spot the problem. I've tried to look this up for a couple days now and I just can't seem to find an answer that will work for me, or something that seems very complicated that I never had to do before.
