Skip to content

Instantly share code, notes, and snippets.

@mediaupstream
Created November 19, 2015 10:34
Show Gist options
  • Save mediaupstream/fde27e1c0783265f8959 to your computer and use it in GitHub Desktop.
Save mediaupstream/fde27e1c0783265f8959 to your computer and use it in GitHub Desktop.
Jekyll website deploy script, using scp
#!/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