delete all website files to ensure that there are no conflicts
This commit is contained in:
parent
59f83164ce
commit
ffa75c3bcc
@ -13,6 +13,7 @@ deploy:
|
||||
- echo "$PRIVKEY" | base64 -d > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- ssh-keyscan -p 69 107.189.28.28 >> ~/.ssh/known_hosts
|
||||
- ssh -i ~/.ssh/id_rsa -p 69 gitlab@107.189.28.28 "rm -rf /var/www/fzorb.xyz/*"
|
||||
- rsync -avzh ./public/ -e "ssh -i ~/.ssh/id_rsa -p 69" gitlab@107.189.28.28:/var/www/fzorb.xyz
|
||||
- ssh -i ~/.ssh/id_rsa -p 69 gitlab@107.189.28.28 "chmod 755 -R /var/www/fzorb.xyz"
|
||||
only:
|
||||
|
Loading…
Reference in New Issue
Block a user