Should we change the setup script to not automatically overwrite the environment file? #6840
justinclift
started this conversation in
Ideas
Replies: 2 comments
-
Created a PR to fix the problem: getredash/setup#60 That PR also adds an optional |
Beta Was this translation helpful? Give feedback.
0 replies
-
The Redash setup script now supports several different Linux distributions:
It'd be nice to support macOS and WSL as well, but that can come at some future point. Unless someone else wants to implement those sooner, which would be welcome too. 😄 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This part of the Redash
setup.sh
script bothers me: https://github.com/getredash/setup/blob/654f24aa2783fed921979cd3251be3f20740826f/setup.sh#L111-L114That's automatically deleting any existing environment file when the script runs, which means that anyone who runs it more than once is going to have a mismatch between their environment file and their Redash PostgreSQL database.
It's also a common source of problems for new users.
I'm thinking we should change that to not automatically delete it.
We could also check for the presence of the minimum required fields too, to ensure the existing environment file won't result in a broken setup. Maybe generate any missing values, and let the user know?
For the existing behaviour of deleting any env file that exists, we could probably use a switch (
--replace
or something) to preserve that behaviour, for anyone who needs it?What do people think?
Beta Was this translation helpful? Give feedback.
All reactions