Running "composer install" from .cpanel.yml

QuietSpecialist

Registered
Nov 28, 2019
2
1
3
United Kingdom
cPanel Access Level
Root Administrator
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:

Code:
---
deployment:
    tasks:
        - export DEPLOYPATH=[path]
        - /usr/local/bin/composer install
        - /bin/cp -r web/* $DEPLOYPATH
What am I doing wrong?