From 83c1e09c899270e97f4e3bec1b0f23189d9f1226 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Wed, 23 Mar 2016 01:00:24 +0300 Subject: [PATCH] building/deploying update --- deploy.sh | 5 +++-- gulpfile.babel.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index 5788d863..ab372918 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,7 +2,7 @@ echo "Deploying art.shburg.org" -NODE_ENV=production gulp +NODE_ENV=production gulp deploy server="art.shburg.org" app_port=1800 @@ -23,7 +23,8 @@ env GZIP=-9 tar -czf ${tarpath} \ echo "Build file: $tarpath" -ssh h "rm -rf $destpath/*" +#ssh h "rm -rf $destpath/*" +ssh h "rm -rf $destpath/public/*" scp ${tarpath} hoster@${server}:${destpath} echo "Build file successfully uploaded on server" diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 73c1750e..b687b610 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -79,7 +79,7 @@ gulp.task('compile', () => { ]) .pipe(named()) .pipe(webpack({ - // devtool: 'inline-source-map', + devtool: isProduction ? 'inline-source-map' : null, watch: doWatch, output: { filename: '[name].js'