Skip to content

Commit

Permalink
feat: shell script to initialize sail (#7378)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasRos authored Oct 25, 2024
1 parent 37ac218 commit 3e875d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ npm-debug.log
.phpunit.result.cache
yarn-error.log
monica.db
sail
12 changes: 12 additions & 0 deletions sail-init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/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/php83-composer:latest \
composer install --ignore-platform-reqs
ln -s ./vendor/bin/sail sail

0 comments on commit 3e875d3

Please sign in to comment.