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

Allow setting a single DB url environment variable #1899

Open
savager opened this issue Oct 23, 2023 · 0 comments
Open

Allow setting a single DB url environment variable #1899

savager opened this issue Oct 23, 2023 · 0 comments
Labels

Comments

@savager
Copy link

savager commented Oct 23, 2023

Summary

Perhaps I'm doing something else wrong, but I thought I'd spin up a test instance of Shlink to evaluate, and having to set many environment variables instead of simply a typical postgres url seems unnecessary.

Especially in my circumstance where I'm using Google Cloud SQL Proxy's url formatting:

<DB_TYPE>://:@/dbname?host=/cloudsql/<PROJECT_ID>::<INSTANCE_NAME>

I've tried putting dbname?host=/cloudsql/<PROJECT_ID>::<INSTANCE_NAME> as the DB_NAME environment variable, but am still getting an error.

Initializing database if needed...
[ERROR] Error generating database.. Run with -vvv to see specific error info.

Use case

Setting a database url as one environment variable is easier, and cleaner.

@acelaya acelaya added this to the 4.0.0 milestone Nov 4, 2023
@acelaya acelaya removed this from the 4.0.0 milestone Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants