Deploy NodeJS app to Azure from VS Code

巧了我就是萌 提交于 2019-12-13 09:46:09

问题


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)?


回答1:


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

If empty application already there use force flag:

git push azure master -f

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/


来源:https://stackoverflow.com/questions/45625131/deploy-nodejs-app-to-azure-from-vs-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!