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: Don't overwrite .env.local if one exists #255

Merged

Conversation

davidianstyle
Copy link
Contributor

Description

Unbreaks incorrect overwriting of environment by skipping copy of .env.local if .env or .env.local already exist.

Checklist

  • I have installed pre-commit and installed the hooks with pre-commit install before creating any commits.
  • I have updated any related tests for code I modified or added new tests where appropriate.
  • I have manually tested my changes as follows:
    • cd frontend
    • cp .env.dist .env
    • Set NEXT_PUBLIC_BACKEND_URL to anything other than localhost
    • cd ../docker
    • docker compose -f docker-compose.prod.yml -f docker-compose.yml up
    • Make sure the front end requests from the URL you specified in NEXT_PUBLIC_BACKEND_URL as opposed to localhost
  • I have updated any relevant documentation or created new documentation where appropriate.

@ndepaola ndepaola added the bug Something isn't working label Sep 22, 2024
@ndepaola ndepaola merged commit 1ac04bd into chilli-axe:master Sep 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants