部署在Heroku(Yeoman Generator Heroku)中添加Outlook

发布于 2025-01-22 18:50:37 字数 133 浏览 2 评论 0原文

下午好,我已经与Yeoman产生了展望,我将尝试将其上传到Heroku环境中,但是我不知道要遵循哪些准则来上传它,我以前将Nodejs Projects上传到Heroku,以前但是更改端口和一些脚本有效,我不知道我应该遵循哪些文档。

此致

Good afternoon, I have generated an Outlook add in with Yeoman, I am about to try to upload it to a Heroku environment, but I don't know what guidelines to follow to upload it well, I have uploaded nodejs projects to heroku before, but changing the port and some script works, I don't know what documentation I should follow.

Best regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瀞厅☆埖开 2025-01-29 18:50:37

您处理典型的Web应用程序。 package.json文件中的脚本部分中有一个命令,如果您基于WebPack bundler构建加载项:

"build": "webpack --mode production",

因此,如果您以以下方式运行它:

npm run build

您将获得所有在dist文件夹中配置的文件。因此,您只需要将它们上传到任何Web服务器。

webpack.config.js中,您需要配置生产URL以正确构建加载项并为特定的Web服务器准备就绪。无需手动更改端口。但是,您可以检查清单文件。

You deal with a typical web application. There is a command in the scripts section of the package.json file if you build the add-in based on the webpack bundler:

"build": "webpack --mode production",

So, if you run it in the following way:

npm run build

You will get all the files configured in the dist folder. So, you just need to upload them to any web server.

In the webpack.config.js you need to configure the production URL to build the add-in correctly and ready for a specific web server. There is no need to change the ports manually. However, you may check the manifest file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文