better deploy

This commit is contained in:
2016-10-13 20:56:43 -05:00
parent fa8fc26b8a
commit 3b0d26bff1
4 changed files with 34 additions and 10 deletions

View File

@ -69,7 +69,36 @@ module.exports = function(grunt) {
hostname: '*',
}
}
},
copy: {
dist: {
expand: true,
cwd: '.',
src: [
'bower_components/normalize-css/normalize.css',
'font/**/*',
'img/**/*',
'*.{html,css}'
],
dest: 'dist/'
}
},
'sftp-deploy': {
build: {
auth: {
host: 'markamoser.com',
port: 6791,
authKey: 'workhorse'
},
cache: 'sftpCache.json',
src: 'dist/',
dest: 'www/links/',
progress: true
}
}
});
// Tasks
@ -83,4 +112,5 @@ module.exports = function(grunt) {
});
grunt.registerTask('default', ['serve']);
grunt.registerTask('deploy', ['copy:dist', 'sftp-deploy:build']);
};