-
Notifications
You must be signed in to change notification settings - Fork 36
/
runProd.sh
26 lines (17 loc) · 1.05 KB
/
runProd.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
#!/usr/bin/env bash
if test -f "./this_is_local.txt"; then
echo "this_is_local.txt exists, delete that if you want to run prod."
exit -1
fi
touch this_is_prod.txt
# This needs to be built first, as docker doesn't resolve dependencies
# docker-compose build --no-cache imagick_php_base
docker-compose build --no-cache imagick_php_base_im6
docker-compose build --no-cache imagick_php_base_im7
# docker-compose build imagick_php_base_im6
# docker-compose build imagick_php_base_im7
# Build all other containers.
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --build --force-recreate installer
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --build --force-recreate js_builder
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build --force-recreate --remove-orphans imagick_php_backend_im6 imagick_php_backend_im7 nginx redis
# docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --build --force-recreate --remove-orphans imagick_php_backend_im6 imagick_php_backend_im7 nginx redis