-
Notifications
You must be signed in to change notification settings - Fork 409
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
Add instructions for local postgres #2442
Add instructions for local postgres #2442
Conversation
Add additional documentation on how to set up Postgres if using a local installation and not Docker.
docs/HOWTO_USE_POSTGRESQL.md
Outdated
* Grant permissions to the new Spoke user: | ||
* `psql -d spokedev -c "GRANT ALL PRIVILEGES ON DATABASE spokedev TO spoke;"` | ||
* `psql -d spokedev -c "GRANT ALL PRIVILEGES ON schema public TO spoke;"` | ||
* Also run the commands from `./dev-tools/create-test-database`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tool won't work for local pg because its set up for docker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I'm not saying to run the script directly but to manually run the commands to create a test database instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh I see. I would instead have you place those instructions directly in the document (minus the docker stuff). I can see new devs getting confused like I did.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the explanation, hopefully this is more clear!
We don't actually want to run the script, which is built for Docker environments - we just want to run the SQL commands from that script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Description
Add additional documentation on how to set up Postgres if using a local installation and not Docker. I tried setting up locally with a preexisting Postgres installation and found I needed to make the listed changes.
Checklist: