Open brettt89 opened 3 years ago
Also raised on the bringyourownideas module: https://github.com/bringyourownideas/silverstripe-maintenance/issues/142 (that provides some context on the work already done).
We had previously seen the same issue on the CWP in-nation platform. That was resolved with the following (and was expected to resolve it for SC too): https://github.com/bringyourownideas/silverstripe-composer-update-checker/pull/35/files
I guess the culprit might be what is mentioned in the most popular comment on the putenv manual page:
putenv/getenv, $_ENV, and phpinfo(INFO_ENVIRONMENT) are three completely distinct environment stores. doing putenv("x=y") does not affect $_ENV; but also doing $_ENV["x"]="y" likewise does not affect getenv("x"). And neither affect what is returned in phpinfo().
Issue
Recipe currently requires a couple of modules that have a hard dependancy on Composer being installed.
Modules:
These modules require that
composer
be installed on the web boxes or executable by a user with ability to store cached items. This is currently not supported on Silverstripe Cloud and causes PHP errors to be thrown by the recipe during normal behaviour.Error
How to Replicate
/dev/tasks
URLHOME
andCOMPOSER_HOME
environment variables not being set.