8000 Improve database configuration options, examples, and docs by Floppy · Pull Request #2372 · manyfold3d/manyfold · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve database configuration options, examples, and docs #2372

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

Merged
merged 5 commits into from
Jul 10, 2024

Conversation

Floppy
Copy link
Collaborator
@Floppy Floppy commented Jul 10, 2024

DRY up the code for creating database connection details, as Rails can handle that for us, we don't need it in the entrypoint script. Also, we're changing our recommended setup to use the separate variables, as it's easier to understand than expecting users to parse a database URL with multiple components.

@Floppy Floppy added the improvement Refactors and behind-the-scenes improvements label Jul 10, 2024
Copy link
codeclimate bot commented Jul 10, 2024

Code Climate has analyzed commit d8bd8f2 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 85.4% (0.0% change).

View more on Code Climate.

@Floppy Floppy merged commit 02c2360 into main Jul 10, 2024
10 checks passed
@Floppy Floppy deleted the simplify-db-setup branch July 10, 2024 09:21
@Floppy
Copy link
Collaborator Author
Floppy commented Jul 10, 2024

@aneurinprice FYI, I realised that we can handle all the separate database fields in Rails' database.yml; DATABASE_URL automatically overrides all that if p 802A resent, but if it's not there, the env vars are used. So this should work exactly the same as before.

@Floppy Floppy mentioned this pull request Jul 10, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Refactors and behind-the-scenes improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0