Files
monica/sail-init.sh
2025-08-09 19:04:24 +02:00

13 lines
424 B
Bash

#!/bin/bash
#
# Run this script after first cloning the repository to be ready to use the sail command.
#
# taken from https://laravel.com/docs/11.x/sail#installing-composer-dependencies-for-existing-projects
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php84-composer:latest \
composer install --ignore-platform-reqs
ln -s ./vendor/bin/sail sail