Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

HOW TO FIX ISSUE WITH SERVER CONNECTING TO POSTGRE (ERRCONREFUSED) #23

Open
saousername opened this issue Aug 30, 2023 · 4 comments
Open

Comments

@saousername
Copy link

Rather than setting the DB host to 127.0.01/0.0.0.0/localhost, you should set it to the name of the docker container (so rg_db) since Docker uses container names rather than IP addresses.

I spent so long trying to fix this issue and finally found this StackOverflow post to help me.
More likely than not, nobody will see this or need help with it since this project is now abandoned. I made this post anyway for the small chance that there are still some people using it because nobody should have to face the insanity that I had to face when trying to fix this evil bug.

I'll post anymore issues I encounter with this old codebase and post fixes here given that the author doesn't seem to be updating it or accepting pull requests that attempt to make fixes.

Best of luck coders. ⚡

@iqbal125
Copy link
Collaborator

iqbal125 commented Sep 4, 2023

@saousername Hey appreciate you doing this.

Im currently working on another one that should makes things a lot simpler.

But it requires me to build it from scratch instead of updating this one.

This was my first attempt at making a boilerplate so a lot of mistakes were made.

@SkyYap
Copy link
Collaborator

SkyYap commented Sep 9, 2023

Rather than setting the DB host to 127.0.01/0.0.0.0/localhost, you should set it to the name of the docker container (so rg_db) since Docker uses container names rather than IP addresses.

I spent so long trying to fix this issue and finally found this StackOverflow post to help me. More likely than not, nobody will see this or need help with it since this project is now abandoned. I made this post anyway for the small chance that there are still some people using it because nobody should have to face the insanity that I had to face when trying to fix this evil bug.

I'll post anymore issues I encounter with this old codebase and post fixes here given that the author doesn't seem to be updating it or accepting pull requests that attempt to make fixes.

Best of luck coders. ⚡

Hi,

Can you make a PR to the issue? I am not really good at docker and currently using the MongoDB of this SaaS Starter Kit Pro so not able to test the Postgres connection. And I am reviving this repo.

@saousername
Copy link
Author

Hey. Don't really know how to make a PR and I'm no longer using this boilerplate but if you stick at it then I imagine my instructions will be helpful. IIRC it was all about modifying the .env which is simple enough.

Good to hear you are working on something new @iqbal125. Unfortunately due to the fact that this repo is no longer maintained, some stuff wasn't working and the frontend was written using stuff that our team doesn't like (Styled components VS Tailwind), we decided to move elsewhere. However I know that if you had a high-quality product which was actively maintained, our team would have happily purchased a license.

My suggestion would be to use shadcn UI (built on top of tailwind, a method that a lot of people like) and does a lot of stuff for you but gives you FULL control over all code so you can change. Plus it's super easy to theme and works nicely. Whereas the frontend on this repo is very disjointed because it uses styled components which was a huge turn-off for our team.

Hope this advice helps you construct a bigger, better and more modern SaaS starter kit. Best of luck and make sure to have fun while you do it. Feel free to ask me for any advice, you can contact me on Discord I am @SAMOL on there.

Best,
Sam.

@iqbal125
Copy link
Collaborator

Hey. Don't really know how to make a PR and I'm no longer using this boilerplate but if you stick at it then I imagine my instructions will be helpful. IIRC it was all about modifying the .env which is simple enough.

Good to hear you are working on something new @iqbal125. Unfortunately due to the fact that this repo is no longer maintained, some stuff wasn't working and the frontend was written using stuff that our team doesn't like (Styled components VS Tailwind), we decided to move elsewhere. However I know that if you had a high-quality product which was actively maintained, our team would have happily purchased a license.

My suggestion would be to use shadcn UI (built on top of tailwind, a method that a lot of people like) and does a lot of stuff for you but gives you FULL control over all code so you can change. Plus it's super easy to theme and works nicely. Whereas the frontend on this repo is very disjointed because it uses styled components which was a huge turn-off for our team.

Hope this advice helps you construct a bigger, better and more modern SaaS starter kit. Best of luck and make sure to have fun while you do it. Feel free to ask me for any advice, you can contact me on Discord I am @SAMOL on there.

Best, Sam.

Hey thanks for the reply. Yeah the new one will use modern popular technologies.

I cant believe you mentioned Shadcn because thats exactly wat Im using. haha.

Wat other technologies do you want? Stripe or a MoR like lemon Squeezy?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants