forked from drorganvidez/evidentia
-
Notifications
You must be signed in to change notification settings - Fork 5
/
deploy.sh
34 lines (31 loc) · 1.57 KB
/
deploy.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
34
#!/bin/bash
git submodule update --init --recursive
cp .env.laradock laradock/.env
cp build/docker-compose.mock laradock/docker-compose.yml
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!"