
You can keep your Git repository lean by only including the necessary files to build your application. Dependencies such as vendor and third party dependencies, contributed code and other artifacts can all be managed via composer. This alleviates the need to keep thousands of dependent files and packages in your git repository.
Leveraging composer is quick and painless. Your composer.json and/or composer.lock files will need to be in the root level of your git repository. With this, you can add the following line to your Drupal plugin inside your .probo.yaml file.
For example:
1 2 3 4 5 6 7 8 9 10 | - name: Provision Drupal And Install With Composer plugin: LAMPApp composer: true database: mydb.sql.gz databaseGzipped: true subDirectory: web phpIniOptions: max_execution_time: 60 upload_max_filesize: 25M post_max_size: 25M |
In this sample, the composer file will be used to install your code and all of the dependencies that are specified in your composer.json or composer.lock file.
Keep in mind that doing this runs a composer install command which, if the composer.lock file is present, will use the exact versions specified in the lock file. If the composer.lock file is not present, it install the latest versions of everything in the composer.json file as it is specified. For this reason, we recommend including the composer.lock file in your git repository.
Be sure to use .gitignore to exclude locates for dependencies such as vendor folders or other items that aren’t needed.

When you sign up for a Probo.CI registration code, you will get a two week trial of the plan of your choosing. For more information on how to get started, click here .
LEARN MORE ABOUT PROBO.CI'S PRICING