Angularjs 将完整堆栈项目部署到Azure
您将如何将Yeoman生成器的输出部署到Azure?生成器生成如下输出,即两个文件夹-Angularjs 将完整堆栈项目部署到Azure,angularjs,git,azure,yeoman,azure-web-app-service,Angularjs,Git,Azure,Yeoman,Azure Web App Service,您将如何将Yeoman生成器的输出部署到Azure?生成器生成如下输出,即两个文件夹-client和server ├── client │ ├── app - All of our app specific components go in here │ ├── assets - Custom assets: fonts, images, etc… │ ├── components - Our reusabl
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 deploy。我该怎么做呢
更新
下面是Azure中的部署文件结构
以下是简短版本:
这将给你一个空白的Azure Web应用程序的<>代码> Git远程< /代码>,允许你推到它。这意味着您可以这样做:
git remote add azure [URL for remote repository]
git push azure master
是较长的版本(它适用于节点应用程序,但同样的概念也适用)。我已经尝试过几次了,只出现了500个错误,没有显示任何内容,只有一个空白页面。在部署angular fullstack项目时,似乎还需要其他一些东西。@Stuarth允许您可能需要进行一些重新配置。我注意到angular fullstack使用mongodb——这显然不会在Azure上开箱即用。这里有一些关于Azure上mongodb的信息:我已经安装了Mongo,这不是问题所在。事实上,有一个服务器和客户端文件夹,我不认为Azure正在处理这个问题。通常Azure会检测到部署了节点应用程序并设置一些配置。这种情况不会发生,我不知道如何设置。你必须在web.config上创建一个重写规则,但我仍然在计算正确的设置