Edited deploy
parent
e368b04c24
commit
08235d26d7
4
deploy
4
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 && \\
|
||||
|
|
Reference in New Issue