Created
November 19, 2015 10:34
-
-
Save mediaupstream/fde27e1c0783265f8959 to your computer and use it in GitHub Desktop.
Jekyll website deploy script, using scp
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
#!/bin/bash | |
user="username" | |
host="example.com" | |
port=22 | |
site_folder="_site" | |
remote_folder="/var/www/example.com/" | |
scp -P $port -r ${site_folder}/* ${user}@${host}:${remote_folder} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment