-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeploy.sh
executable file
·42 lines (33 loc) · 1.03 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
35
36
37
38
39
40
41
42
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
REMOTE=bb
rsync --recursive --links --times --itemize-changes \
./ $REMOTE:/var/www/ddr0.ca/ \
--exclude=".*" \
--exclude="site-config" \
--exclude="*.node.js" \
--exclude="node_modules" \
--exclude="*.sublime-*" \
&
rsync --recursive --links --times --itemize-changes \
site-config/ddr0 $REMOTE:/etc/nginx/site-fragments/ddr0 \
&
#The system folder isn't writable, can't create temp files so --inplace.
rsync --recursive --links --times --itemize-changes \
--inplace \
site-config/*.service $REMOTE:/lib/systemd/system/ \
&
rsync --recursive --links --times --itemize-changes \
⚀/dice.node.js $REMOTE:/opt/ddr0.ca/⚀/ \
&
rsync --recursive --links --times --itemize-changes \
⚁/dice.node.js $REMOTE:/opt/ddr0.ca/⚁/ \
&
rsync --recursive --links --times --itemize-changes \
⚂/dice.node.js $REMOTE:/opt/ddr0.ca/⚂/ \
&
rsync --recursive --links --times --itemize-changes \
node_modules $REMOTE:/opt/ddr0.ca/ \
&
wait