Created
June 15, 2020 11:48
-
-
Save 0x49D1/2fc412ccf0343d78e840c17bc367db26 to your computer and use it in GitHub Desktop.
Deploy angular app using SCP with automatic password without interaction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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