android.moparisthebest.org/source/docs/deploying/rsync/index.markdown
2011-09-22 04:13:12 -05:00

1.2 KiB

layout title date sidebar footer
page Deploying with Rsync 2011-09-10 17:53 false false

Deploying with Rsync via SSH

Add your server configurations to the Rakefile under Rsync deploy config. To deploy with Rsync, be sure your public key is listed in your server's ~/.ssh/authorized_keys file.

    ssh_user       = "user@domain.com"
    document_root  = "~/website.com/"
    deploy_default = "rsync"

Now if you run

    rake generate   # If you haven't generated your blog yet
    rake deploy     # Syncs your blog via ssh

in your terminal, your public directory will be synced to your server's document root.

Version control

You'll want to keep your blog source in a remote git repository, so either set up a Github repository or host your own and then do this.

# Since you cloned Octopress, you'll need to change the origin remote
git remote rename origin octopress
git remote add origin (your repository url)
# set your new origin as the default branch
git config branch.master.remote origin

{% render_partial docs/deploying/_self_hosted_git.markdown %}

{% render_partial docs/deploying/_subdir.markdown %}