Skip to content

Instantly share code, notes, and snippets.

@0x49D1
Created June 15, 2020 11:48
Show Gist options
  • Save 0x49D1/2fc412ccf0343d78e840c17bc367db26 to your computer and use it in GitHub Desktop.
Save 0x49D1/2fc412ccf0343d78e840c17bc367db26 to your computer and use it in GitHub Desktop.
Deploy angular app using SCP with automatic password without interaction
ng build --prod && sshpass -f ~/test_pass scp -r ./dist/project/* REMOTE_USER@REMOTE_SERVER:/var/www/html
# Where:
# test_pass is the file, containing the password for remote server access
# the project will be deployed to /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment