Conversation
Production backup triggers use DEFINER='restarters'@'%', but the local MariaDB only had 'restarters'@'127.0.0.1'. Create and grant both so INSERT/UPDATE on devices doesn't fail with error 1449. Safe: bind-address=127.0.0.1 means '%' cannot connect from outside. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Implements "deploy any branch from the web" to the develop container: - fly.preview.toml: deploys to restarters-dev using yesterday-startup.sh (embedded MariaDB + overnight DB backup restore from Google Drive). Same credentials and secrets as the yesterday container. - .github/workflows/preview-deploy.yml: workflow_dispatch workflow with a branch input. Runs fly deploy --config fly.preview.toml --remote-only. Requires FLY_API_TOKEN and (on the container) GDRIVE_BACKUP_FOLDER_ID, RCLONE_CONFIG_GDRIVE_TEAM_DRIVE secrets — same as restarters-yesterday. - PreviewDeployController: admin-only page that fetches open PRs from GitHub API (using GITHUB_DEPLOY_PAT secret on the container), shows a dropdown of develop/master/PRs, and POSTs to trigger workflow_dispatch. - config/services.php: adds github.deploy_pat from GITHUB_DEPLOY_PAT env. Setup required: fly secrets set GITHUB_DEPLOY_PAT=<token-with-workflow-scope> --app restarters-dev fly secrets set GDRIVE_BACKUP_FOLDER_ID=<id> --app restarters-dev fly secrets set RCLONE_CONFIG_GDRIVE_TEAM_DRIVE=<id> --app restarters-dev (copy rclone.conf from yesterday container to restarters-dev as needed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…eature branches Feature branches don't have fly.preview.toml, so fall back to master's copy. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
/admin/preview-deploy) for admins to select any branch or open PR and trigger a rebuild of therestarters-devcontainer with the latest overnight DB backupPreview deploy setup (one-time)
On the
restarters-devFly app, set these secrets:Also ensure
FLY_API_TOKENis set in GitHub repo secrets (used by preview-deploy.yml).Test plan
restarters.dev, log in as admin →/admin/preview-deployshows branch dropdown with open PRspreview-deploy.ymlworkflow