Skip to content

KBalderson/Jekyll-Rake-RSync-Deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Jekyll-Rake-RSync-Deploy

A rake task for RSync Deployment in Jekyll.

Creates rake tasks for Jekyll Deploy and Launch.

Uses environments set up in _config.yml like so:

environments:
  stage:
    url: http://stage.example.com
    remote:
      connection: [email protected]
      path: /var/www/
      port: 12345 #optional
  production:
    url: http://production.example.com
    remote:
      connection: [email protected]
      path: /var/www/

Usage

=====

To deploy the site, run rake deploy

To deploy a different environment, run rake deploy env=production

The same applies for launch:

rake launch
rake launch env=production

This command will open the environment in your default browser

Defaults

========

env=stage

Notes and Thanks

================

Note: Requires 'destination' (see Jekyll docs) to be set in _config.yml, or it will try to rsync "/". Do not include a trailing slash on the 'destination' variable.

Thanks to henrik for the rsync bash script that I stole to make this.

*nix, mac only

About

A rake task for RSync Deployment in Jekyll

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages