Automatically fix relative application paths
MODIFY
lib/basedriver/helpers.js
lib/basedriver/helpers.js
@@ -153,6 +153,11 @@ async function configureApp (app, supportedAppExtensions) {
}
}
logger.info(`Unzipped local app to '${newApp}'`);
+ } else if (!path.isAbsolute(newApp)) {
+ newApp = path.resolve(process.cwd(), newApp);
+ logger.warn(`The current application path '${app}' is relative, ` +
+ `which might cause further issues. The path has been rewritten to '${newApp}' ` +
+ `in order to avoid them`);
}
verifyAppExtension(newApp, supportedAppExtensions);

Automatically fix relative application paths (#276)