Skip to content

Instantly share code, notes, and snippets.

@mchayka
Last active August 29, 2015 13:57
Show Gist options
  • Save mchayka/9662968 to your computer and use it in GitHub Desktop.
Save mchayka/9662968 to your computer and use it in GitHub Desktop.
// ssh deployment
myhostCredentials: grunt.file.readJSON('myhostCredentials.json'),
sshconfig: {
myhost: {
host: '111.111.111.111',
username : '<%= myhostCredentials.username %>',
privateKey: grunt.file.read(process.env.HOME + '/.ssh/id_rsa'),
passphrase: '<%= myhostCredentials.passphrase %>',
path: '/home'
}
},
sftp: {
deploy: {
files: {
"./": "build/**"
},
options: {
config: 'myhost',
createDirectories: true,
showProgress: true,
srcBasePath: 'build/'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment