I have a WordPress site where I'm trying to push out updated code via FTP using Pipelines, and then run "composer install" within the theme directory in order to install necessary dependencies. I have a composer.json file within that theme directory that manages dependencies.
I'm wondering how I can tell Pipelines to run the install in the theme directory using that composer.json file? Here is my current code:
image: php:7.2.3
pipelines:
default:
- step:
script:
- apt-get update && apt-get install -y unzip
- apt-get -qq install git-ftp
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD server/path
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install