From 08235d26d7de8729cc5bda5c1bc8de426284a580 Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Thu, 3 Dec 2020 13:29:38 +0100 Subject: [PATCH] Edited deploy --- deploy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy b/deploy index 49ac56a..1d60c6b 100755 --- a/deploy +++ b/deploy @@ -7,10 +7,10 @@ hugo tar -czf public.tar.gz public # Copy tarball to server -scp -P 2222 public.tar.gz jjr@roosens.me:/srv/nginx/sites/ +scp -P $RUBY_PORT public.tar.gz $RUBY_USER@$RUBY_URL:/srv/nginx/sites/ # Unpack the tarball -ssh -p 2222 jjr@roosens.me bash << EOF +ssh -p $RUBY_PORT $RUBY_USER@$RUBY_URL bash << EOF cd /srv/nginx/sites/ && tar -xf public.tar.gz && \\ rm -rf blog && \\ mv public blog && \\