简体   繁体   English

nodejs:如何在 Azure 上部署自定义 SDK 和 nodejs 应用程序

[英]nodejs: how to deploy a custom SDK along with the nodejs app on Azure

I developed a SDK.js that ease the use of my API supported by my nodejs server on Azure.我开发了一个 SDK.js 来简化我的 API 的使用,我的 nodejs 服务器支持 Azure。

What would be the best way to deploy this SDK.js to the server so that client can make use of it after having it embedded in their code via a tag?将此 SDK.js 部署到服务器的最佳方法是什么,以便客户端可以在通过标记将其嵌入代码后使用它?

Note: I'd like my SDK.js to be babelled and minified in the process.注意:我希望我的 SDK.js 在此过程中被压缩和缩小。

As far as where to put the file, there are two options I can recommend: either in a public endpoint or by leveraging Azure Storage.至于将文件放在哪里,我可以推荐两个选项:在公共端点或利用 Azure 存储。

As for deployment, one solution is to include it in whatever deployment process the API. If you are looking for an outside solution, there are a large number out there, but two that will make the process as simple as possible that I am aware of are Azure Devops and Github Actions.至于部署,一种解决方案是将其包含在 API 的任何部署过程中。如果您正在寻找外部解决方案,那里有很多解决方案,但我知道有两个将使过程尽可能简单是 Azure Devops 和 Github Actions。 Of those two, Github Actions has a larger free tier if your project is small.如果您的项目较小,那么在这两者中,Github Actions 具有更大的免费套餐。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM