Composer mode in PaaS environments
It seems like the environment variable SPRYKER_COMPOSER_MODE
dedicates the mode composer uses to install dependencies within PaaS pipelines.
What is the default setting in PaaS when not touching this variable in deploy.*.yml
?
Should I use my deploy-files to overwrite this default variable setting?
Can I use the Parameter Store to adjust its value?
Best Answer
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,075 ⚖️ - Guardians (admin)
Heyhey, got some feedback from our docker-sdk team:
What is the default setting in PaaS when not touching this variable in
deploy.*.yml
?SPRYKER_COMPOSER_MODE
doesn’t have the default value.Should I use my deploy-files to overwrite this default variable setting?
Yes, via the deploy file we can adjust the composer configuration, e.g depends on the working environment.
- dev mode
composer:
mode: ''
autoload: ''
- prod mode with
--no-dev
and optimised autoload
composer:
mode: --no-dev
autoload: --classmap-authoritative
Can I use the Parameter Store to adjust its value?
No, you can handle the composer configuration via deploy file.
Hope this helps :)2
Answers
-
@sebastian.wagner just to note, I moved your question over here into the Developer Corner space :)
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,075 ⚖️ - Guardians (admin)
Heyhey, got some feedback from our docker-sdk team:
What is the default setting in PaaS when not touching this variable in
deploy.*.yml
?SPRYKER_COMPOSER_MODE
doesn’t have the default value.Should I use my deploy-files to overwrite this default variable setting?
Yes, via the deploy file we can adjust the composer configuration, e.g depends on the working environment.
- dev mode
composer:
mode: ''
autoload: ''
- prod mode with
--no-dev
and optimised autoload
composer:
mode: --no-dev
autoload: --classmap-authoritative
Can I use the Parameter Store to adjust its value?
No, you can handle the composer configuration via deploy file.
Hope this helps :)2 -
sebastian.wagner enrolled to Back End Development Basics Spryker Solution Partner Posts: 9 🧑🏻🚀 - Cadet
So i doulbe checked and an environment with composer.mode: —no-dev didn't contain dev dependencies, thank you.
1
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 919 Developer Corner
- 779 Spryker Development
- 89 Spryker Dev Environment
- 362 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