从VS Code将NodeJS应用程序部署到Azure [英] Deploy NodeJS app to Azure from VS Code

查看:89
本文介绍了从VS Code将NodeJS应用程序部署到Azure的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS Code(Linux)中创建了简单的nodejs应用程序。还在Azure中创建了NodeJS应用。如何现在将应用程序从VS Code部署到此Azure应用程序?已安装AZ CLI。我已经下载了一些 MyApp.PublishSettings 文件,但是它似乎是在VS中而不是在VS Code中使用的。有或没有git(github)时进行部署的最佳方法是什么?

Created simple nodejs app in VS Code (Linux). Also created NodeJS app in Azure. How to deploy app from VS Code to this Azure app now? AZ CLI installed. I've downloaded some MyApp.PublishSettings file however seems it used in VS not VS Code. What is the best way to deploy then with or without git (github)?

推荐答案

从命令行(或VS)进行本地Git部署代码终端):

Local Git deployment from command line (or VS Code terminal):

git remote add azure https://<username>@<app_name>.scm.azurewebsites.net/<app_name>.git
git push azure master

如果已存在空应用程序,请使用 force 标志:

If empty application already there use force flag:

git push azure master -f

在Linux上将Bot Framework部署到Azure的有用链接

Useful links deploying Bot Framework To Azure On Linux:

  • https://code.visualstudio.com/tutorials/nodejs-deployment/deploy-website
  • https://blog.botframework.com/2017/04/27/Deploying-Botframework-To-Azure-On-Linux/

P.S。。自2017年以来可能已过时。

P.S. Could be outdated since 2017.

这篇关于从VS Code将NodeJS应用程序部署到Azure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆