-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Make Deployment Type 2 work with DBs on localhost #2571
Comments
More detail about deployment type 2 in this issue: #2508 |
Method 1 (Connecting via Unix Socket):Setup (Works for Linux and MacOS not sure about Windows)The host config file of Postgres
to
or
The next step is to mount the directory which contains the socket file
Now the only thing left to do is to set-up appropriate environment variables for connecting to the host database this will include setting up the connection string as such:
If the user also wants to use the host_db to store the mathesar_django database the connection string should be something like so:
If the host db is already using port
And that's it, you have Mathesar connected to the db on the host machine. Method 2 (Connecting via TCP/IP):Postgres by default only listen to requests from localhost we also want it to listen to request from our docker container i.e SetupInside the
Inside the
These are all the changes that are needed to be done in the host Postgres's internal files
The last thing to do now is to set-up appropriate env variables the connection string should look like this:
If the user also wants to use the host_db to store the mathesar_django database the connection string should be something like so:
We have successfully established a connection to the host_db. Method 3 (Using SSH):Not researched yet. ConclusionMethod 2 when first proposed by me to Brent was rejected by him as it included fiddling around with the user's internal Postgres files, and I was told to research Method 1(which also includes altering |
I'm going to move this issue to the 'Next release' milestone. @Anish9901 @mathemancer If you both think this will be complete by the time for the 0.1.2 release, we can add it to the release milestone. |
No description provided.
The text was updated successfully, but these errors were encountered: