Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save samuraitruong/2122f4f3ce251e92ec2260a7600dbf19 to your computer and use it in GitHub Desktop.
Save samuraitruong/2122f4f3ce251e92ec2260a7600dbf19 to your computer and use it in GitHub Desktop.
Rsycn SSH
rsync --no-perms --omit-dir-times --delete -vr -e "ssh -i /home/teamcity/.ssh/id_rsa_custom" --timeout=1000 --log-file=/tmp/rsyncd.log ./build/ ci@server:/var/www/build/
rsync --no-perms --omit-dir-times -vr -e "ssh -i /home/teamcity/.ssh/id_rsa_custom" --timeout=1000 --log-file=/tmp/rsyncd.log ./node_modules/ ci@server:/var/www/node_modules/
rm -f .env.production.local
cat >.env.production.local <<'EOL'
AAA=VVVV/
BBB=XXXX
EOL
cat .env.production.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment