1

I have a VPS with cPanel installed.

I'm trying to run the "composer install" command from .cpanel.yml but can't get it to work.

Composer is installed on the server and called via /usr/local/bin/composer

My .cpanel.yml is as follows:

---
deployment:
    tasks:
        - export DEPLOYPATH=[path]
        - composer install
        - /bin/cp -r web/* $DEPLOYPATH

What am I doing wrong?

1

There is nothing wrong with the code. Composer ran but with errors.

Manually running composer and fixing the errors solved the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.