better deploy
This commit is contained in:
30
Gruntfile.js
30
Gruntfile.js
@ -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']);
|
||||
};
|
||||
|
Reference in New Issue
Block a user