Hey Team, i would like to implement the following behaviour for my local environment (
Hey Team, i would like to implement the following behaviour for my local environment (https://docs.spryker.com/docs/scos/dev/architecture/code-buckets.html#defining-the-code-buckets-to-execute), meaning i want to have one Store DE with two endpoints www.de.store.local and www.de-store.local. i want www.de.store.local to use Code bucket "A" and www.de-store.local to use Code bucket "B" like a A/B-Testing case, but i couldn´t find any reference how to configure that with docker/sdk and the following example code is not documented and therefore also does not work, but i would assume it would need a similar solution to make it work locally. Any one any suggestions?
groups: DE: region: EU applications: yves: application: yves endpoints: www.de.store.local: store: DE environment: SPRYKER_CODE_BUCKET: A www.de-store.local: store: DE environment: SPRYKER_CODE_BUCKET: B
Comments
-
what is inside your
SprykerConfig\CodeBucketConfig
?0 -
public function getCodeBuckets(): array { return [ 'A', 'B', ]; }
0 -
but CodeBucketConfig is only for all available CodeBuckets no? i would need to set the environment-variable SPRYKER_CODE_BUCKET according to the endpoint i am calling
0 -
I think you must use
SPRYKER_CODE_BUCKET
before you run any commend using docker/sdk0 -
i do not want to run a command, i want to make an HTTP-Request to the endpoint
0 -
did you re-boot your env after your changes??
0 -
the changes i made are only dummy-code they won´t work as there is no such configuration available for the deploy.*.yml file on the endpoint level. but the documentation i referenced mentions such a behaviour for the PaaS, so my goal was to test this locally. But it seems like that the docker-sdk tool is not able to set environment variables on endpoint level
0 -
any change to deploy.*.yml require re-boot your env
0 -
i know that, but as i wrote above and in the initial thread the configuration i made is only dummy-code
0 -
here is the documentation for the deploy.*.yml -> https://docs.spryker.com/docs/scos/dev/the-docker-sdk/202204.0/deploy-file/deploy-file-reference-1.0.html#groups-applications-endpoints
0 -
How is a dummy code and needs to be worked
IF you only change it in the deploy file how it will work then ??0 -
in my initial thread i already wrote "i couldn´t find any reference how to configure that with docker/sdk and the following example code is not documented and therefore also does not work, but i would assume it would need a similar solution to make it work locally. Any one any suggestions?"
0 -
i do not expect this solution to work, i just want to know how i can make it work, and what i posted is an assumption of mine...
0 -
and as this specific case is mentioned in the documentation for the Spryker PaaS i wanted to make it work locally
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 73 Spryker News
- 911 Developer Corner
- 771 Spryker Development
- 87 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random