Skip to content

fix(easy-install): support Traefik v3 SITES_RULE and add safe site mismatch handling#1701

Merged
barredterra merged 8 commits into
frappe:developfrom
Rocket-Quack:fix-easy-install-traefik-site-rules
Jul 1, 2026
Merged

fix(easy-install): support Traefik v3 SITES_RULE and add safe site mismatch handling#1701
barredterra merged 8 commits into
frappe:developfrom
Rocket-Quack:fix-easy-install-traefik-site-rules

Conversation

@Rocket-Quack

Copy link
Copy Markdown
Contributor

#1696
Fixed because frappe-docker now accepts a different format for site_rules due to traefik updates.

Summary

This PR updates easy-install.py for Traefik v3-compatible site routing and adds safer handling when --sitename differs from an existing project .env

Changes

  • switched env write format from legacy SITES to SITES_RULE (Traefik v3 style)
  • added backward-compatible read fallback for legacy SITES
  • added deprecation warning when legacy SITES is detected
  • added --confirm-site-mismatch option for build, deploy, and upgrade
  • when .env sites differ from CLI --sitename:
    • warns and aborts by default
    • proceeds only if --confirm-site-mismatch is provided
  • updated README.md for new flag and migration behavior

@sonarqubecloud

Copy link
Copy Markdown

@greptile-apps

greptile-apps Bot commented Jun 26, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Reviews (5): Last reviewed commit: "fix: prevent empty SITES_RULE writes" | Re-trigger Greptile

Comment thread easy-install.py Outdated
Comment thread easy-install.py Outdated
@barredterra

Copy link
Copy Markdown
Collaborator

@Rocket-Quack can you evaluate Greptile's suggestions and let me know when the PR is ready to merge.

Comment thread easy-install.py Outdated

@revant revant left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass the automated tests and review.

Lgtm.

Comment thread easy-install.py Outdated
@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

@barredterra
barredterra merged commit 7cb47f3 into frappe:develop Jul 1, 2026
10 checks passed
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.

3 participants