Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 将完整堆栈项目部署到Azure_Angularjs_Git_Azure_Yeoman_Azure Web App Service - Fatal编程技术网

Angularjs 将完整堆栈项目部署到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

您将如何将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 deploy。我该怎么做呢

更新 下面是Azure中的部署文件结构


以下是简短版本:

  • 在Azure中创建新的空白Web应用程序
  • 在部署选项中,选择“设置连续部署”
  • 选择“本地Git存储库”

    这将给你一个空白的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上创建一个重写规则,但我仍然在计算正确的设置