angularjs - 将 yeoman Angular-fullstack 项目部署到 Azure

标签 angularjs git azure yeoman azure-web-app-service

您将如何部署 angular-fullstack 的输出Yeoman 生成器到 Azure?生成器生成如下输出,即两个文件夹 - clientserver

├── client
│   ├── app                 - All of our app specific components go in here
│   ├── assets              - Custom assets: fonts, images, etc…
│   ├── components          - Our reusable components, non-specific to to our app
│
├── e2e                     - Our protractor end to end tests
│
└── server
    ├── api                 - Our apps server api
    ├── auth                - For handling authentication with different auth strategies
    ├── components          - Our reusable or app-wide components
    ├── config              - Where we do the bulk of our apps configuration
    │   └── local.env.js    - Keep our environment variables out of source control
    │   └── environment     - Configuration specific to the node environment
    └── views               - Server rendered views

我想将其部署到 Microsoft Azure,最好使用 Git 部署。我该怎么做呢?

更新

这是 Azure 中的部署文件结构。

enter image description here

最佳答案

这是简短的版本:

  1. 在 Azure 中创建一个新的空白 Web 应用程序。
  2. 在部署选项中,选择“设置持续部署”。
  3. 选择“本地 Git 存储库”。

这将为您提供空白 azure Web 应用程序的 Git Remote,以便您可以推送它。这意味着您可以执行以下操作:

git remote add azure [URL for remote repository]
git push azure master

Here是更长的版本(它用于节点应用程序 - 但应用相同的概念)。

关于angularjs - 将 yeoman Angular-fullstack 项目部署到 Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30744902/

相关文章:

javascript - 如何使用 AngularJS 创建文件并将其保存到本地文件系统?

html - ASP.NET MVC 强制 <th> 元素在同一行

git - Git 文件上的重音符号

azure - 如何从交互式 PowerShell session 调用 Azure REST API

azure - 使用 asp.net 核心和 Azure 运行 .exe

javascript - 如何在独立函数中使用 AngularJS api?

javascript - Angular + Selenium : Cannot get value from input field

git - 我将如何挂载 docker 容器文件系统?

ios - 为现有的 Xcode 5 项目添加本地仓库

azure - 如何避免键查找