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/
=====
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
========
env=stage
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