How to run composer install into .cpanel.yml file

ajhedu

Registered
Jan 22, 2021
1
0
1
Colombia
cPanel Access Level
Root Administrator
Hi, i try run composer install in to .cpanel.yml file but doesn't work

here my file .cpanel.yml

deployment:
tasks:
- export DEPLOYPATH=/home/sisjgcom/testing.servisuministrosjg.co/
- /bin/cp .env.production $DEPLOYPATH/.env
- /bin/cp -R ./ $DEPLOYPATH
- $DEPLOYPATH/composer install

thanks
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,139
2,404
363
cPanel Access Level
Root Administrator
Hey there! Inside /home/username/.cpanel/logs there will be a deployment log that may provide more details about the error that's happening. It may also be good to confirm that the composer installation is really located at /home/sisjgcom/testing.servisuministrosjg.co/composer, and it might also be worth testing it running "/home/sisjgcom/testing.servisuministrosjg.co/composer install" works manually. That's where I'd start with this!