-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun
executable file
·33 lines (23 loc) · 977 Bytes
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
echo "initializing in progress...."
echo "Copying .env.example .env in progress...."
cp .env.example .env
echo "Copying .env.example .env Done"
if [ -f ./.env ]; then
source ./.env
fi
echo "Installing the app using docker composer image in progress...."
docker run --rm -it -v "$PWD":/app -u "$(id -u)" composer install
echo "Installing Done"
echo "running laravel sail, docker containers are going to be built it may take time...."
./vendor/bin/sail up -d
echo "running laravel sail Done"
echo "running migrations and run TestDataSeeder seeder in progress...."
./vendor/bin/sail artisan init:app
echo "running migrations and run TestDataSeeder seeder Done"
echo "================================================================"
echo "customer user : [email protected]"
echo "admin user : [email protected]"
echo "password : password"
echo "================================================================"
echo "please navigate to ${APP_URL}:${APP_PORT}"