简体   繁体   English

从 VS Code 将 NodeJS 应用程序部署到 Azure

[英]Deploy NodeJS app to Azure from VS Code

Created simple nodejs app in VS Code (Linux).在 VS Code (Linux) 中创建了简单的 nodejs 应用程序。 Also created NodeJS app in Azure.还在 Azure 中创建了 NodeJS 应用程序。 How to deploy app from VS Code to this Azure app now?现在如何将应用程序从 VS Code 部署到此 Azure 应用程序? AZ CLI installed. AZ CLI 已安装。 I've downloaded some MyApp.PublishSettings file however seems it used in VS not VS Code.我已经下载了一些MyApp.PublishSettings文件,但它似乎用于 VS 而不是 VS Code。 What is the best way to deploy then with or without git (github)?使用或不使用 git (github) 的最佳部署方式是什么?

Local Git deployment from command line (or VS Code terminal):从命令行(或 VS Code 终端)进行本地 Git 部署:

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

If empty application already there use force flag:如果空应用程序已经存在,则使用force标志:

git push azure master -f

Useful links deploying Bot Framework To Azure On Linux:将 Bot Framework 部署到 Azure On Linux 的有用链接:

PS Could be outdated since 2017. PS自 2017 年以来可能已过时。

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

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