summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gulpfile.js17
1 files changed, 13 insertions, 4 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 981f289..160d3e1 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -334,17 +334,26 @@
334 'package:images', 'package:css', 'package:js']); 334 'package:images', 'package:css', 'package:js']);
335 335
336 gulp.task('rsync', function () { 336 gulp.task('rsync', function () {
337 gulp.src('dest/**') 337 gulp.src(dir.dist)
338 .pipe(rsync({ 338 .pipe(rsync({
339 root: 'dest', 339 root: dir.dist,
340 hostname: 'kleos.inaugust.com', 340 hostname: 'kleos.inaugust.com',
341 destination: '/var/www/inaugust.com/talks' 341 destination: '/var/www/inaugust.com',
342 recursive: true
342 })); 343 }));
343 }); 344 });
345
346 gulp.task('push', function () {
347 gulp.src(dir.dist)
348 git.push('origin', 'master', function (err) {
349 if (err) throw err;
350 });
351 });
352
344 /** 353 /**
345 * Build the current release package and push it 354 * Build the current release package and push it
346 */ 355 */
347 gulp.task('release', ['package', 'rsync']); 356 gulp.task('release', ['package', 'rsync', 'push']);
348 357
349 /** 358 /**
350 * Start a local server and serve the application code. This is 359 * Start a local server and serve the application code. This is