This commit is contained in:
@@ -33,11 +33,11 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/deploy_key
|
chmod 600 ~/.ssh/deploy_key
|
||||||
ssh-keyscan -H $SERVER_HOST >> ~/.ssh/known_hosts
|
ssh-keyscan -H $SERVER_HOST >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
# Clear old files on server
|
# Empties the folder safely without triggering Zsh glob errors
|
||||||
# New version (No asterisk)
|
# and without needing root permissions on /var/www
|
||||||
ssh -i ~/.ssh/deploy_key $SERVER_USER@$SERVER_HOST \
|
ssh -i ~/.ssh/deploy_key $SERVER_USER@$SERVER_HOST \
|
||||||
"rm -rf /var/www/foreignthon-docs && mkdir -p /var/www/foreignthon-docs"
|
"find /var/www/foreignthon-docs -mindepth 1 -delete"
|
||||||
|
|
||||||
# Copy built site
|
# Copy built site
|
||||||
scp -i ~/.ssh/deploy_key -r site/* \
|
scp -i ~/.ssh/deploy_key -r site/* \
|
||||||
$SERVER_USER@$SERVER_HOST:/var/www/foreignthon-docs/
|
$SERVER_USER@$SERVER_HOST:/var/www/foreignthon-docs/
|
||||||
|
|||||||
Reference in New Issue
Block a user