Last active
August 29, 2015 14:14
-
-
Save sigriston/b284bcafa840317a344a to your computer and use it in GitHub Desktop.
grunt deploys via grunt-rsync
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// ... | |
grunt.initConfig({ | |
//... | |
// Deploy settings (task config, put inside grunt.initConfig) | |
rsync: { | |
options: { | |
src: "dist/", | |
args: [ "--verbose" ], | |
ssh: true, | |
recursive: true, | |
delete: true | |
}, | |
example: { | |
options: { | |
dest: "[email protected]:/var/www/public_html/" | |
port: 30089 // ssh port | |
} | |
} | |
} | |
}); | |
// ... | |
grunt.registerTask('deploy', [ | |
'build', | |
'rsync' | |
]); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment