-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow dynamic route mapping for discounts and ads #217
Conversation
image: "ddtraining/storefront-fixed:latest" | ||
- ADS_ROUTE=${ADS_ROUTE} | ||
- DISCOUNTS_ROUTE=${DISCOUNTS_ROUTE} | ||
image: "public.ecr.aws/x2b9z2t7/ddtraining/storefront-fixed:latest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be tagged with the associated release, rather than latest
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This compose file is used for local development only, so I keep it tagged to latest
so the most recent changes to storefront are always being tested if we're between releases
#13
This allows frontend to connect to the
ads
anddiscounts
on a configurable path set at runtime via thedeploy/docker-compose/.env
file:The values default to the docker routes
http://advertisements
andhttp://discounts
I've also updated the developer documentation to accurately reflect how to make a core change across all frontend versions.
How to test
deploy/docker-compose/.env
, and start the app via thebaseline
compose file e.g.POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres DD_API_KEY=[API KEY] make local-baseline-start