From 3bbdd85a78a80b39ee9b4b6ada905a033d6d9645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Mon, 31 Jul 2017 18:22:29 -0500 Subject: [PATCH 1/2] fix(upload): set TEMP_FILENAME according to documentRoot value --- .idea/vcs.xml | 6 ++++++ lib/upload.js | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/lib/upload.js b/lib/upload.js index ced2683..d572b7d 100644 --- a/lib/upload.js +++ b/lib/upload.js @@ -13,7 +13,7 @@ var shelljs = require('shelljs'); var log = require('./logging').logger; var chalk = require('chalk'); -var TEMP_FILENAME = 'www.zip'; +var TEMP_FILENAME = ''; var Upload = module.exports; Upload.doUpload = function doUpload(appDirectory, jar, note, deploy) { @@ -29,6 +29,8 @@ Upload.doUpload = function doUpload(appDirectory, jar, note, deploy) { var documentRoot = project.get('documentRoot') || 'www'; var indexPath = path.join(appDirectory, documentRoot, 'index.html'); var upload; + + TEMP_FILENAME = documentRoot + '.zip'; try { return Upload.addCacheBusters(indexPath) .then(function() { From 37e203fdad3a29fdbb65ab19d1064040aaf2548f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Mon, 31 Jul 2017 18:31:54 -0500 Subject: [PATCH 2/2] chore(): ignore .idea files --- .gitignore | 1 + .idea/vcs.xml | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 .idea/vcs.xml diff --git a/.gitignore b/.gitignore index c7adeb9..7fa2c65 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/ *.swp coverage/ .vscode/ +.idea/ \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file