Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 6dad276

Browse files
committed
Fix zip path to createArchive path before upload
Signed-off-by: Siddharth Kannan <kannan.siddharth12@gmail.com>
1 parent b6a3755 commit 6dad276

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/upload.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ Upload.uploadToS3 = function uploadToS3(appDirectory, keyInfo) {
9595
log.debug('Uploading zip file to S3');
9696

9797
var proxy = process.env.PROXY || process.env.HTTP_PROXY || null;
98-
var zipFile = path.join(appDirectory, TEMP_FILENAME);
98+
var project = IonicProject.load(appDirectory);
99+
var documentRoot = project.get('documentRoot') || 'www';
100+
log.debug("Document root is set to: " + documentRoot);
101+
var zipFile = path.join(appDirectory, documentRoot) + ".zip";
99102

100103
// Now we upload with the signed URL the dash returned
101104
log.debug(zipFile);

0 commit comments

Comments
 (0)