fix (core.gbapp): Download folder on server azure.

This commit is contained in:
Rodrigo Rodriguez 2024-09-16 19:04:33 -03:00
parent 214a6472ef
commit f8af6c4bd5
2 changed files with 2 additions and 2 deletions

View file

@ -525,7 +525,7 @@ export class GBDeployer implements IGBDeployer {
// Download files or navigate to directory to recurse.
await CollectionUtil.asyncForEach(documents, async item => {
const itemPath = packagePath.join(localPath, remotePath, item.name);
const itemPath = path.join(localPath, remotePath, item.name);
if (item.folder) {
if (!(await GBUtil.exists(itemPath))) {

View file

@ -336,7 +336,7 @@ export class GBSSR {
packagePath = GBServer.globals.wwwroot + "/index.html"; // TODO.
}
if (!min && !url.startsWith("/static") && GBServer.globals.wwwroot) {
packagePath = packagePath.join(GBServer.globals.wwwroot, url);
packagePath = path.join(GBServer.globals.wwwroot, url);
}
if (await GBUtil.exists(packagePath)) {
if (min) {