-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: configure bin scripts for sail
- Loading branch information
Showing
4 changed files
with
54 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
echo 'copying .env.example to .env...' | ||
cp .env.example .env | ||
|
||
echo 'installing Composer dependencies within Docker container...' | ||
docker run --rm \ | ||
-u "$(id -u):$(id -g)" \ | ||
-v "$(pwd):/var/www/html" \ | ||
-w /var/www/html \ | ||
--env-file .env \ | ||
laravelsail/php83-composer:latest \ | ||
composer install --ignore-platform-reqs | ||
|
||
echo 'building Docker containers...' | ||
./vendor/bin/sail build --no-cache | ||
|
||
echo 'running sail up...' | ||
./vendor/bin/sail up -d | ||
|
||
echo 'generating application key...' | ||
./vendor/bin/sail art key:generate | ||
|
||
echo 'migrating database and seeding...' | ||
./vendor/bin/sail art migrate --seed | ||
|
||
echo 'initializing reverb' | ||
./vendor/bin/sail art reverb:start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
echo 'running sail up...' | ||
./vendor/bin/sail up -d | ||
|
||
echo 'initializing reverb' | ||
./vendor/bin/sail art reverb:start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./vendor/bin/sail stop |