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

Flush redis only on deploys but not on regular restarts #472

Closed
alexey-yarmosh opened this issue Jan 18, 2024 · 0 comments · Fixed by #480
Closed

Flush redis only on deploys but not on regular restarts #472

alexey-yarmosh opened this issue Jan 18, 2024 · 0 comments · Fixed by #480

Comments

@alexey-yarmosh
Copy link
Member

  • on build, write the current commit hash to a file in /dist;
  • on app start, every instance reads API_COMMIT_HASH_${HOSTNAME} from redis, and reads the latest commit hash from the file;
  • if the values exist and match, don't purge the DB; otherwise purge and write the new commit value to redis;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants