Closed joshmcarthur closed 7 months ago
@jadedarko that's a fair comment. We have to be a bit careful exactly how descriptive we're being in a public repo, but I've provided some broad updates to the README (which needed updating to cover Signbank anyway) in https://github.com/ODNZSL/nzsl-dictionary-scripts/pull/26
I've updated the repo secrets for both Prerelease and Production, so these restarts will work once this PR is merged.
Also in https://github.com/ODNZSL/nzsl-dictionary-scripts/actions I manually ran the workflow to confirm that the restart does actually work.
This pull request adds an additional step to the database extraction task so that Heroku apps are automatically restarted following a database extraction. The apps to restart are determined by values in secrets, which are further determined by environment. For example, when the environment is 'prerelease', the staging and UAT apps will be restarted. When the environment is 'production', the production apps will be restarted.
Each of the apps being restarted either has, or will have a process to download the latest dictionary database (which has just been published by this workflow) upon starting.