in src/publishers/zipDeploy.ts [47:62]
private static validateApplicationSettings(state: StateConstant, context: IActionContext) {
const appSettings: IAppSettings = context.appSettings;
if (appSettings.WEBSITE_RUN_FROM_PACKAGE !== undefined &&
appSettings.WEBSITE_RUN_FROM_PACKAGE.trim().startsWith('http')) {
throw new AzureResourceError(state, "zipDepoy", "WEBSITE_RUN_FROM_PACKAGE in your function app is " +
"set to an URL. Please remove WEBSITE_RUN_FROM_PACKAGE app setting from your function app.");
}
if (appSettings.WEBSITE_RUN_FROM_PACKAGE !== undefined &&
appSettings.WEBSITE_RUN_FROM_PACKAGE.trim() === '0' &&
(context.os === undefined || context.os === RuntimeStackConstant.Linux)) {
Logger.Warn("Detected WEBSITE_RUN_FROM_PACKAGE is set to '0'. If you are deploying to a Linux " +
"function app, you may need to remove this app setting.");
return;
}
}