您将如何部署 angular-fullstack 的输出Yeoman 生成器到 Azure?生成器生成如下输出,即两个文件夹 - client
和 server
。
├── 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 中的部署文件结构。
最佳答案
这是简短的版本:
- 在 Azure 中创建一个新的空白 Web 应用程序。
- 在部署选项中,选择“设置持续部署”。
- 选择“本地 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/