Skip to content
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

fix: The DATABASE_URL set in .env.test doesn't include a colon between the username and password. #246

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

cullylarson
Copy link
Contributor

If you provide a database password during setup, the DATABASE_URL set in .env.test will not have a colon between the username and password. If no password is provided, it works fine.

Changes

  • Update _.env.test.ejs to put a colon between the username and password if a password is provided.

Checklist

  • Generating a new app works

DATABASE_URL="postgresql://<%= db.dev.user %><% if (db.dev.password) { %>:<%= db.dev.password %><% } %>@<%= db.dev.host %>:<%= db.dev.port %>/<%= db.test.name %>?schema=public"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just copied this from _.env.ejs.

@cullylarson cullylarson merged commit 9d33f77 into canary Feb 9, 2022
@cullylarson cullylarson deleted the bug/test-database-url-not-set-correctly branch February 9, 2022 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants