Installing Dependencies

Amezmo will install Composer for you automatically when you create an application. If you're not commiting your vendor directory to source control, then you can install your dependencies with a deployment hook. We recommend using the .amezmo/after.pull hook to install composer and npm dependencies.

Using Hooks to Install Dependencies

It's important that your script runs in non-interactive mode in order to prevent your deployment from failing. Deployment hooks currerntly have a 5 minute execution limit. We recommend using the following script for installing dependencies with composer. See below for a working deployment hook example.

Deployment "hooks" are files defined in the .amezmo directory inside your root directory of your application. You must create this directory and create deployment scripts inside this directory.


# Full path: <your repo>/.amezmo/after.pull
set -e;

echo "Running composer install (${COMMIT_ID})";

composer \
    --no-ansi \
    --no-interaction \
    --optimize-autoloader \
    --no-progress \
    --no-dev \
    --profile \

php artisan migrate --no-interaction --no-ansi --force;

npm install;


  • The demo project provides more examples of deployment hooks
Need support?

We're always happy to help with either application or infrastructure questions Always feel free to reach out to us on Twitter, or contact support.