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
-
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_MODEdoesn’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-devand optimised autoload
composer:mode: --no-devautoload: --classmap-authoritativeCan 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 -
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_MODEdoesn’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-devand optimised autoload
composer:mode: --no-devautoload: --classmap-authoritativeCan 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 🧑🏻🚀 - CadetSo 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
- 92 Spryker News
- 1K Developer Corner
- 855 Spryker Development
- 93 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 36 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 35 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
- 34 Product & Business Questions
- 70 Spryker Safari Questions
- 51 Random
