Skip to main content

Load project

You can create your own project loader. Simply add a bash script here: ./app/.docker-mate/load-hook.sh.
Some systems also include a load hook.

Entrypoint

You always start in the top directory and often need to switch into app. You can also run make commands.

Examples

Build css/js yarn

Example uses a build-assets command from your Makefile. Avoids duplicate code.

app/.docker-mate/load-hook.sh
#!/usr/bin/env bash
cd app || exit 1
composer install

cd theme || exit 1
yarn --frozen-lockfile || exit 1

cd ../../

# Return urls
make build-assets
update