@@ -3,3 +3,5 @@ |
||
3 | 3 |
/.tmp |
4 | 4 |
/.sass-cache |
5 | 5 |
/bower_components |
6 |
+.ftppass |
|
7 |
+sftpCache.json |
@@ -220,7 +220,7 @@ module.exports = function (grunt) { |
||
220 | 220 |
} |
221 | 221 |
} |
222 | 222 |
} |
223 |
- }, |
|
223 |
+ }, |
|
224 | 224 |
|
225 | 225 |
// Renames files for browser caching purposes |
226 | 226 |
filerev: { |
@@ -423,7 +423,25 @@ module.exports = function (grunt) { |
||
423 | 423 |
configFile: 'test/karma.conf.js', |
424 | 424 |
singleRun: true |
425 | 425 |
} |
426 |
+ }, |
|
427 |
+ |
|
428 |
+ 'sftp-deploy': { |
|
429 |
+ build: { |
|
430 |
+ auth: { |
|
431 |
+ host: '162.243.124.54', |
|
432 |
+ port: 22, |
|
433 |
+ authKey: 'key1' |
|
434 |
+ }, |
|
435 |
+ cache: 'sftpCache.json', |
|
436 |
+ src: 'dist', |
|
437 |
+ dest: '/var/www/oficina-itapeti/public_html/teste/', |
|
438 |
+ exclusions: ['/dist/**/.DS_Store', '/dist/**/Thumbs.db', 'dist/tmp'], |
|
439 |
+ serverSep: '/', |
|
440 |
+ concurrency: 4, |
|
441 |
+ progress: true |
|
442 |
+ } |
|
426 | 443 |
} |
444 |
+ |
|
427 | 445 |
}); |
428 | 446 |
|
429 | 447 |
|
@@ -480,4 +498,10 @@ module.exports = function (grunt) { |
||
480 | 498 |
'test', |
481 | 499 |
'build' |
482 | 500 |
]); |
501 |
+ |
|
502 |
+ grunt.registerTask('deploy', [ |
|
503 |
+ 'build', |
|
504 |
+ 'sftp-deploy' |
|
505 |
+ ]); |
|
506 |
+ |
|
483 | 507 |
}; |
@@ -100,7 +100,6 @@ |
||
100 | 100 |
<script src="bower_components/angular-route/angular-route.js"></script> |
101 | 101 |
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script> |
102 | 102 |
<script src="bower_components/angular-touch/angular-touch.js"></script> |
103 |
- <script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script> |
|
104 | 103 |
<!-- endbower --> |
105 | 104 |
<!-- endbuild --> |
106 | 105 |
|
@@ -39,5 +39,8 @@ |
||
39 | 39 |
}, |
40 | 40 |
"scripts": { |
41 | 41 |
"test": "karma start test/karma.conf.js" |
42 |
+ }, |
|
43 |
+ "dependencies": { |
|
44 |
+ "grunt-sftp-deploy": "^0.2.4" |
|
42 | 45 |
} |
43 | 46 |
} |