GruntでファイルをSFTPでアップロードする。
» https://github.com/thrashr888/grunt-sftp-deploy
$ npm install grunt-sftp-deploy --save-dev
Hetemlの例
assets
|-- css
|
|-- style.css
|
|-- sass
|-- module1.sass
|-- style.scss
|
|-- Gruntfile.js
|
|-- .ftppass
'sftp-deploy': {
build: {
auth: {
host: 'hostname',
port: 2222,
authKey: 'key1'
},
src: 'css',
dest: '/home/sites/heteml/~/assets/css',
exclusions: [ 'css/sass/*.scss' ]
}
}
grunt.loadNpmTasks( 'grunt-sftp-deploy' );
{
"key1": {
"username": "hoge",
"password": "pass"
}
}
No comments yet.
改行と段落タグは自動で挿入されます。
メールアドレスは表示されません。