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

Fix zip path to createArchive path before upload (Fixes #121) #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ Upload.uploadToS3 = function uploadToS3(appDirectory, keyInfo) {
log.debug('Uploading zip file to S3');

var proxy = Utils.getProxy();
var zipFile = path.join(appDirectory, TEMP_FILENAME);
var project = IonicProject.load(appDirectory);
var documentRoot = project.get('documentRoot') || 'www';
log.debug("Document root is set to: " + documentRoot);
var zipFile = path.join(appDirectory, documentRoot) + ".zip";

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