-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·14 lines (14 loc) · 930 Bytes
/
build.sh
File metadata and controls
executable file
·14 lines (14 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -e
# docker run --rm -v "$(pwd):/app" node:6 bash -c "cd /app; npm install; ./node_modules/.bin/gulp sass"
rsync -avph --delete --exclude /sass/ --exclude /vendor/ --exclude '*.sketch' --exclude '*.php' web/ docs/
docker-compose -f docker-compose.yml build --pull
docker-compose -f docker-compose.yml up -d
sleep 10
curl -f -H "X-Forwarded-Proto: https" http://localhost:90 -o docs/index.html
mkdir -p docs/features/
curl -f -H "X-Forwarded-Proto: https" http://localhost:90/features/developers -o docs/features/index.html
curl -f -H "X-Forwarded-Proto: https" http://localhost:90/features/developers -o docs/features/developers.html
curl -f -H "X-Forwarded-Proto: https" http://localhost:90/features/ops -o docs/features/ops.html
curl -f -H "X-Forwarded-Proto: https" http://localhost:90/features/business -o docs/features/business.html
curl -H "X-Forwarded-Proto: https" http://localhost:90/404 -o docs/404.html