Office 插件(自定义函数)部署到 Azure 应用服务
Office addin (custom functions) deployment to Azure app service
使用“yo office”生成了自定义函数加载项项目。实现了所有必要的自定义功能,插件在本地环境中运行良好。
部署到 Azure 服务时现在面临以下部署问题。
Invalid start-up command "office-addin-debugging start manifest.xml" in package.json. Please use the format "node ".
Missing server.js/app.js files, web.config is not generated
Invalid start-up command "office-addin-debugging start manifest.xml" in package.json. Please use the format "node ".\r\nMissing server.js/app.js files, web.config is not generated\r\nC:\Program Files (x86)\SiteExtensions\Kudu.30310.5111\bin\Scripts\starter.cmd "C:\home\site\deployments\tools\deploy.cmd"
以下是package.json
中的脚本块
scripts": {
"build": "webpack -p --mode production --https false",
"build:dev": "webpack --mode development --https false",
"build-dev": "webpack --mode development --https false && echo . && echo . && echo . && echo Please use 'build:dev' instead of 'build-dev'.",
"dev-server": "webpack-dev-server --mode development",
"prod-server": "webpack-dev-server --mode production",
"start": "office-addin-debugging start manifest.xml",
"start:desktop": "office-addin-debugging start manifest.xml desktop",
"start:web": "office-addin-debugging start manifest.xml web",
"stop": "office-addin-debugging stop manifest.xml",
"validate": "office-addin-manifest validate manifest.xml",
"watch": "webpack --mode development --watch",
"configure-sso": "office-addin-sso configure manifest.xml"}
谢谢!!
修改了代码库。使用 express 和 webpack 部署到服务器。在 Azure 和 AWS 中测试。申请已启动 运行.
通过关注https://binyamin.medium.com/creating-a-node-express-webpack-app-with-dev-and-prod-builds-a4962ce51334能够解决部署问题
使用“yo office”生成了自定义函数加载项项目。实现了所有必要的自定义功能,插件在本地环境中运行良好。
部署到 Azure 服务时现在面临以下部署问题。
Invalid start-up command "office-addin-debugging start manifest.xml" in package.json. Please use the format "node ". Missing server.js/app.js files, web.config is not generated Invalid start-up command "office-addin-debugging start manifest.xml" in package.json. Please use the format "node ".\r\nMissing server.js/app.js files, web.config is not generated\r\nC:\Program Files (x86)\SiteExtensions\Kudu.30310.5111\bin\Scripts\starter.cmd "C:\home\site\deployments\tools\deploy.cmd"
以下是package.json
中的脚本块scripts": {
"build": "webpack -p --mode production --https false",
"build:dev": "webpack --mode development --https false",
"build-dev": "webpack --mode development --https false && echo . && echo . && echo . && echo Please use 'build:dev' instead of 'build-dev'.",
"dev-server": "webpack-dev-server --mode development",
"prod-server": "webpack-dev-server --mode production",
"start": "office-addin-debugging start manifest.xml",
"start:desktop": "office-addin-debugging start manifest.xml desktop",
"start:web": "office-addin-debugging start manifest.xml web",
"stop": "office-addin-debugging stop manifest.xml",
"validate": "office-addin-manifest validate manifest.xml",
"watch": "webpack --mode development --watch",
"configure-sso": "office-addin-sso configure manifest.xml"}
谢谢!!
修改了代码库。使用 express 和 webpack 部署到服务器。在 Azure 和 AWS 中测试。申请已启动 运行.
通过关注https://binyamin.medium.com/creating-a-node-express-webpack-app-with-dev-and-prod-builds-a4962ce51334能够解决部署问题