Skip to content

Commit

Permalink
feat(deploy): use traditional rsync command
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Now you have to define your SSH user, port, and host in `_deploy.yml` in order to use `rsync` deployment. It no longer uses predefined hosts in your SSH config file, however this should work for most CI/DI services.
  • Loading branch information
sparanoid committed Dec 26, 2015
1 parent b2089ae commit 1ec5dda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ module.exports = (grunt) ->

# Direct sync compiled static files to remote server
sync_server:
command: "rsync -avz --delete --progress <%= config.deploy.ignore_files %> <%= config.dist %>/ <%= config.deploy.sftp.host %>:<%= config.deploy.sftp.dest %> > rsync-sftp.log"
command: "rsync -avz -e 'ssh -p <%= config.deploy.sftp.port %>' --delete --progress <%= config.deploy.ignore_files %> <%= config.dist %>/ <%= config.deploy.sftp.user %>@<%= config.deploy.sftp.host %>:<%= config.deploy.sftp.dest %> > rsync-sftp.log"

# Copy compiled static files to local directory for further post-process
sync_local:
Expand Down
4 changes: 3 additions & 1 deletion _deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
ignore_files: --exclude=lab

sftp:
host: caladbolg
user: rsync
port: 2233
host: caladbolg.sparanoid.com
dest: /srv/www/sparanoid.com/public_html

s3_website:
Expand Down

0 comments on commit 1ec5dda

Please sign in to comment.