What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello folks, I wonder if anyone came across the `SPRYKER_BUILD_HASH` env variable while using docker
Hello folks,
I wonder if anyone came across the SPRYKER_BUILD_HASH
env variable while using docker/sdk and found out about how and when i could/should be set to be reflected during build. Most interesting when using baked mode and production building.
Comments
-
Hi! It's used to invalidate browser's cache between deployments.
0 -
Thats exactly why I want to use it, but i do not know how 😄
0 -
Is it automatically set by docker/sdk or in PaaS? Do I have to set it on my own?
0 -
@U01KL33S7QX do you remember?
Or should I look into the history? 🙂0 -
I looked into history of solving the problem for Dominik...
It seems that from the application perspective docker/sdk has to be newer than some version, preferably latest.
Then:
https://github.com/spryker-shop/b2c-demo-shop/blob/202009.0/frontend/settings.js#L99
https://github.com/spryker-shop/b2c-demo-shop/blob/202009.0/config/Yves/frontend-build-config.json#L2
https://github.com/spryker-shop/b2c-demo-shop/blob/master/config/Shared/config_default.php#L498For demo\production mode
docker/sdk boot && SPRYKER_BUILD_HASH=somehash docker/sdk up
.
Then in browser check your assets.0 -
If the project hosted in Spryker's PaaS it may be that adjustments are needed on the infra side as well. Like it was for Dominik back then.
0 -
ah ok... so directly "injecting" it on up or build.. I will give it a try, thank you
0 -
That worked @valerii.trots. Thanks. It was to easy so I dd not came up with it on my own 😄
0 -
projekt-code and dockerskd were already ready for this
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 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
- 70 Spryker Safari Questions
- 50 Random