Commit 3d597f3f168f5066ec7eab40fefd0c98a0dd1a6c
1 parent
5ede388f
Exists in
master
and in
2 other branches
Make the publication script work from out of the gateway.
Showing
1 changed file
with
20 additions
and
4 deletions
Show diff stats
bin/publish
... | ... | @@ -4,14 +4,30 @@ |
4 | 4 | |
5 | 5 | # If you're behind the gateway, first open a SSH tunnel like so : |
6 | 6 | # ssh -L 22222:storms.irap.omp.eu:22 mbouchemit@gw.irap.omp.eu |
7 | -# and then use localhost:22222 as SERVER | |
7 | + | |
8 | +# Add to your ~/.ssh/config : | |
9 | +#Host storms.local | |
10 | +# HostName localhost | |
11 | +# Port 22222 | |
12 | +# User mbouchemit | |
13 | +# IdentityFile ~/.ssh/NoPassword/id_rsa | |
14 | + | |
15 | +# and swap configuration below. | |
16 | + | |
17 | +# Note that the storms server seems to reject key-based authentication, | |
18 | +# whatever's written in /etc/sshd configuration. Weird. | |
8 | 19 | |
9 | 20 | # CONFIGURATION ############################################################### |
10 | 21 | |
11 | -USER=mbouchemit | |
12 | -SERVER=storms.irap.omp.eu | |
13 | 22 | REMOTE_DIR=/var/www/html/HELIOPROPA |
14 | 23 | |
24 | +#USER=mbouchemit | |
25 | +#SERVER=storms.irap.omp.eu | |
26 | + | |
27 | +# Through the gateway | |
28 | +USER=agoutenoir | |
29 | +SERVER=storms.local | |
30 | + | |
15 | 31 | |
16 | 32 | # COLORS ###################################################################### |
17 | 33 | |
... | ... | @@ -80,7 +96,7 @@ rsync -r --delete \ |
80 | 96 | --exclude res \ |
81 | 97 | --exclude spec \ |
82 | 98 | --exclude web/run.log \ |
83 | - --exclude web/VISITS \ | |
99 | + --exclude VISITS \ | |
84 | 100 | . ${USER}@${SERVER}:${REMOTE_DIR} |
85 | 101 | |
86 | 102 | ... | ... |