-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
52 lines (44 loc) · 2.68 KB
/
Makefile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
production-pull:
git checkout master -f
git pull origin master
git submodule init
git submodule update --recursive --remote
production-deploy:
# # echo "Updating docker using file $OPTARG"
docker-compose -f docker-compose.prod.yml up --build -d
docker-compose -f docker-compose.prod.yml exec -T web composer install --optimize-autoloader --no-dev
docker-compose -f docker-compose.prod.yml exec -T web yarn install
docker-compose -f docker-compose.prod.yml exec -T web yarn run production
docker-compose -f docker-compose.prod.yml exec -T web php artisan config:cache
# this command is allowed to fail (- sign)
-docker-compose -f docker-compose.prod.yml exec -T web php artisan route:cache
docker-compose -f docker-compose.prod.yml exec -T web php artisan cache:clear
docker-compose -f docker-compose.prod.yml exec -T web php artisan view:clear
docker-compose -f docker-compose.prod.yml exec -T web php artisan migrate --force
docker-compose -f docker-compose.prod.yml exec -T web php artisan lighthouse:clear-cache
docker-compose -f docker-compose.prod.yml exec -T web php artisan lighthouse:cache
docker-compose -f docker-compose.prod.yml exec -T web php artisan queue:restart
docker-compose -f docker-compose.prod.yml exec -T web ./elastic_update.sh
docker-compose -f docker-compose.prod.yml exec -T web curl nginx/reset-cache
docker-compose -f docker-compose.prod.yml exec -T web php artisan queue:restart
staging-pull:
git checkout develop -f
git pull origin develop
git submodule init
git submodule update --recursive --remote
staging-deploy:
docker-compose -f docker-compose.staging.yml up --build -d
docker-compose -f docker-compose.staging.yml exec -T web composer install
docker-compose -f docker-compose.staging.yml exec -T web yarn install
docker-compose -f docker-compose.staging.yml exec -T web yarn run dev
docker-compose -f docker-compose.staging.yml exec -T web php artisan config:cache
# this command is allowed to fail (- sign)
-docker-compose -f docker-compose.staging.yml exec -T web php artisan route:cache
docker-compose -f docker-compose.staging.yml exec -T web php artisan cache:clear
docker-compose -f docker-compose.staging.yml exec -T web php artisan view:clear
docker-compose -f docker-compose.staging.yml exec -T web php artisan migrate --force
docker-compose -f docker-compose.staging.yml exec -T web php artisan lighthouse:clear-cache
docker-compose -f docker-compose.staging.yml exec -T web php artisan lighthouse:cache
docker-compose -f docker-compose.staging.yml exec -T web php artisan queue:restart
docker-compose -f docker-compose.staging.yml exec -T web ./elastic_update.sh
docker-compose -f docker-compose.staging.yml exec -T web curl nginx/reset-cache