Skip to content

Commit f55a83e

Browse files
committed
Use apos.rootDir for better output of the files
1 parent 4ab6dd9 commit f55a83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module.exports = {
7676
// Something wrong on apostrophe that does not move ace-builds onto release directory.
7777
// Use copy plugin until Apostrophe came up with solution or fixes.
7878
try {
79-
await move(path.join(path.join(process.cwd(), 'public/apos-frontend/**/[0-9]*.apos-*')), path.join(path.join(process.cwd(), 'public/apos-frontend/releases/' + self.apos.asset.getReleaseId() + '/' + self.apos.asset.getNamespace() + '/')));
79+
await move(path.join(path.join(self.apos.rootDir, 'public/apos-frontend/**/[0-9]*.apos-*')), path.join(path.join(self.apos.rootDir, 'public/apos-frontend/releases/' + self.apos.asset.getReleaseId() + '/' + self.apos.asset.getNamespace() + '/')));
8080
} catch (e) {
8181
console.log('Unable to move Ace files to production folder', e);
8282
}

0 commit comments

Comments
 (0)