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

Refactor docker entrypoint.sh to better handle missing generated values #5131

Draft
wants to merge 3 commits into
base: 1.0-develop
Choose a base branch
from

Conversation

danny6167
Copy link
Member

This changes the key generation in the entrypoint.sh inside the docker container.

  • APP_KEY is now generated with the regular artisan command
  • HASHIDS_SALT and HASHIDS_LENGTH is now generated and inserted into the .env if missing.

Each variable is tested individually so any existing .env files will get any variables they are missing without breaking/overwriting existing values.

danny6167 and others added 3 commits June 24, 2024 19:44
This changes the key generation in the entrypoint.sh inside the docker container.
- APP_KEY is now generated with the regular artisan command
- HASHIDS_SALT and HASHIDS_LENGTGH is now generated and inserted into the .env if missing.

Each variable is tested individually so any existing .env files will get any variables they are missing without breaking/overwriting existing values.
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.

1 participant