-
Notifications
You must be signed in to change notification settings - Fork 15
/
install_laradock.sh
executable file
·33 lines (30 loc) · 1.51 KB
/
install_laradock.sh
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
33
#!/bin/bash
git submodule update --init --recursive
cp .env.laradock laradock/.env
cp createdb.sql laradock/mysql/docker-entrypoint-initdb.d/createdb.sql
cd laradock
git pull origin master
docker-compose up -d nginx mysql phpmyadmin redis workspace
docker exec laradock_php-fpm_1 chown -R www-data:www-data /var/www/storage
docker exec laradock_workspace_1 rm -f composer.lock
docker exec laradock_workspace_1 composer install
docker exec laradock_workspace_1 npm install
docker exec laradock_workspace_1 php artisan evidentia:start docker
docker exec laradock_workspace_1 php artisan evidentia:start docker
docker exec laradock_workspace_1 php artisan evidentia:instance
docker exec laradock_workspace_1 php artisan key:generate
docker exec laradock_workspace_1 php artisan config:cache
echo ""
echo "WELCOME TO"
echo ".########.##.....##.####.########..########.##....##.########.####....###...";
echo ".##.......##.....##..##..##.....##.##.......###...##....##.....##....##.##..";
echo ".##.......##.....##..##..##.....##.##.......####..##....##.....##...##...##.";
echo ".######...##.....##..##..##.....##.######...##.##.##....##.....##..##.....##";
echo ".##........##...##...##..##.....##.##.......##..####....##.....##..#########";
echo ".##.........##.##....##..##.....##.##.......##...###....##.....##..##.....##";
echo ".########....###....####.########..########.##....##....##....####.##.....##";
echo ""
echo "Open in a new browser:"
echo "http://localhost"
echo ""
echo "The installation has been completed successfully. Enjoy!"