Skip to content

Add PR preview deployment workflow#5327

Open
Artur- wants to merge 9 commits intomainfrom
claude/add-preview-deployment-workflow-HBKp4
Open

Add PR preview deployment workflow#5327
Artur- wants to merge 9 commits intomainfrom
claude/add-preview-deployment-workflow-HBKp4

Conversation

@Artur-
Copy link
Member

@Artur- Artur- commented Mar 6, 2026

Allows reviewers to see documentation changes rendered on a live preview site before merging. Each PR gets its own Fly.io app that is automatically cleaned up when the PR closes.

Artur- added 3 commits March 6, 2026 07:59
Allows reviewers to see documentation changes rendered on a live
preview site before merging. Each PR gets its own Fly.io app that
is automatically cleaned up when the PR closes.
No need for a multi-stage build with nginx when the project's
own dev server works fine for preview purposes.
flyctl deploy doesn't support --internal-port, so the config
needs to come from a generated fly.toml file.
@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-5327.fly.dev

Built from c2b8f9e

Artur- added 6 commits March 6, 2026 09:02
DSPublisher's dev server requires Maven at startup for license
checking. The pro key is set as a Fly.io secret so it's available
at runtime.
Avoids slow Maven downloads on every container startup by caching
them in the image layer.
Avoids needing Maven/JDK entirely by using DSPublisher's build
mode and serving the static output with serve.
Newer rollup versions disallow placing export between a decorator
and a class declaration. The TC39 decorators spec requires
export to come before the decorator.
Run vaadin:prepare-frontend during Docker build to generate
vite.generated.ts and target/plugins/ that Vite needs at startup.
Copy src/ for the license check class compilation.
Pass VAADIN_PRO_KEY as a Fly secret and increase VM memory.
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