简体   繁体   English

NodeJs项目作为Azure WebJob

[英]NodeJs project as a Azure WebJob

What is process to upload NodeJs project as Azure WebJob from Visual Studio. 从Visual Studio将NodeJs项目作为Azure WebJob上传的过程是什么。

I want to upload my nodeJs Project to azure as a WebJob from visual studio with out a WebAPP I am not able to find any blogs or articles to progress further. 我想在没有WebAPP的情况下从Visual Studio将我的nodeJs Project作为WebJob上传到Azure, 但是我找不到任何博客或文章来进一步发展。

Any suggestions? 有什么建议么?

There is an offical tutorial Deploy WebJobs using Visual Studio which you can refer to, but the deployment is within a WebApp. 您可以参考官方教程“ Deploy WebJobs using Visual Studio ,但是该部署在WebApp中。

However, I discovered a new preview feature Azure WebJobs as Api App on Azure new portal. 但是,我在Azure新门户上发现了新的预览功能Azure WebJobs as Api App I think it seems to satisfy your needs, please see and try at the link . 我认为它似乎可以满足您的需求,请查看并尝试链接

Hope it helps. 希望能帮助到你。

This question is problematic, WebJobs run always in the context of a WebApp, that's what they are designed for. 这个问题是有问题的,WebJobs总是在WebApp的上下文中运行,这就是它们的目的。

In the meantime Microsoft published Azure Functions https://azure.microsoft.com/en-us/services/functions/ which can do mostly the same and more, only problem is you'll be developing more functional (haha) as global objects/settings/environment variables aren't accessible (because there is no WebApp context). 同时,Microsoft发布了Azure Functions https://azure.microsoft.com/zh-cn/services/functions/ ,它可以完成几乎所有相同的工作,唯一的问题是您将开发更多的功能(哈哈)作为全局对象/ settings / environment变量不可访问(因为没有WebApp上下文)。

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

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