Switched deploy script to new domain
parent
894dcea904
commit
3c3a28207f
4
deploy
4
deploy
|
@ -7,10 +7,10 @@ hugo
|
||||||
tar -czf public.tar.gz public
|
tar -czf public.tar.gz public
|
||||||
|
|
||||||
# Copy tarball to server
|
# Copy tarball to server
|
||||||
scp -P 2222 public.tar.gz jjr@ruby.roosens.me:/srv/nginx/sites/
|
scp -P 2222 public.tar.gz jjr@roosens.me:/srv/nginx/sites/
|
||||||
|
|
||||||
# Unpack the tarball
|
# Unpack the tarball
|
||||||
ssh -p 2222 jjr@ruby.roosens.me bash << EOF
|
ssh -p 2222 jjr@roosens.me bash << EOF
|
||||||
cd /srv/nginx/sites/ && tar -xf public.tar.gz && \\
|
cd /srv/nginx/sites/ && tar -xf public.tar.gz && \\
|
||||||
rm -rf blog && \\
|
rm -rf blog && \\
|
||||||
mv public blog && \\
|
mv public blog && \\
|
||||||
|
|
Reference in New Issue