Add dev2 deploy automation - #237
Open
aditya-damerla128 wants to merge 2 commits into
Open
Conversation
aditya-damerla128
force-pushed
the
fix/issue-234-dev2-deploy
branch
from
July 27, 2026 16:07
1a8fd0a to
f4979ed
Compare
aditya-damerla128
marked this pull request as ready for review
July 27, 2026 19:57
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the existing production deploy automation to also deploy on dev branch pushes (targeting the dev2 environment), and makes the landing page “Ozwell Manager” URL configurable via environment variables to avoid environment-specific tracked-file changes.
Changes:
- Add
devbranch triggers and branch-scoped concurrency for the reference-server and demo-site deploy workflows, and split deploy jobs intodeploy-prodvsdeploy-dev. - Implement dev2 deploy steps using direct SSH +
rsync, preserving dev2’s/home/adamerla/ozwellai-api+ PM2 + local.envshape. - Make the landing page manager URL environment-driven by injecting
MANAGER_URLinto HTML at serve time and using it for legacy redirects.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| landing-page/server.js | Adds MANAGER_URL env support and injects it into served HTML; uses it for /register.html redirect. |
| landing-page/public/landing.html | Replaces hardcoded manager links with an injected __MANAGER_URL__ placeholder. |
| .github/workflows/deploy-reference-server.yml | Adds dev branch deploy (dev2) and branch-scoped concurrency; gates prod deploy to main. |
| .github/workflows/deploy-demo.yml | Adds workflow_dispatch, dev branch deploy (dev2), and branch-scoped concurrency; gates prod deploy to main. |
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
devpushes/home/adamerla/ozwellai-api+ PM2 + local.envshape while deploying build artifactsozwellconsolewithout dirty tracked filesValidation
git diff --checkbash -n scripts/build-deploy-package.sh scripts/build-demo-package.shnode --check landing-page/server.jsFixes #234