amazon web services - Composer Environment variable missing on CodeDeploy Application -


i'm integrating aws auto scaling group code deploy.

i wrote bash script afterinstall hook.

the script executes composer update, composer dump-autoload since code using php.

and here problem. when deploy, deployment fails log.

[runtimeexception]

the home or composer_home environment variable must set composer run correctly

but when instance via ssh , run composer works fine.

how fix this? had worked around issue?

any answer appreciated. thank time.

i had similar problem using elastic beanstalk , did fixed adding environment variable

enter image description here

enter image description here

you should able achieve in codedeploy example on creating application.

enter image description here

see https://github.com/composer/composer/issues/4789


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -