从VS代码部署NodeJS应用程序到Azure
问题描述:
在VS代码(Linux)中创建简单的nodejs应用程序。还在Azure中创建了NodeJS应用程序。如何现在从VS Code部署应用程序到这个Azure应用程序?已安装AZ CLI。我已经下载了一些MyApp.PublishSettings
文件,但似乎它用于VS而不是VS Code。使用或不使用git(github)部署的最佳方式是什么?从VS代码部署NodeJS应用程序到Azure
答
命令行(或VS码端)
本地的Git部署:
git remote add azure https://<username>@<app_name>.scm.azurewebsites.net/<app_name>.git
git push azure master
如果空的应用程序已经有使用force
标志:
git push azure master -f
相关链接部署博特框架天青在Linux上: