blob: a2bde7a23faaddf3257a5b6ad1276ee917cc512e (
plain)
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
set -ex
source license-generator/.env
echo 'Deploying...'
rsync -avz \
--exclude 'assets/stylesheets' \
400.html \
404.html \
assets \
doc \
downloads \
index.html \
internal_error.html \
license-generator/target/release/fulfillment \
license-generator/target/release/license \
robots.txt \
thank-you.html \
"$SSH_SERVER":"$REMOTE_PUBLIC_WWW/"
rsync -avz \
--exclude '.git' \
license-generator/migrations \
production-config \
scripts \
"$SSH_SERVER":~/
echo 'Running post-deploy script...'
ssh "$SSH_SERVER" 'bash ~/scripts/post-deploy.sh'
|