我遇到一种情况,我\xe2\x80\x99m 尝试使用生产配置构建我的角度应用程序并部署到多个环境,例如ng build --configuration= product
\n\n这里的工作流程是当我使用上述命令(ng build --configuration=production)构建时,environment.ts 文件被替换为environment.prod.ts
\n\n我在environment.prod.ts中的配置如下,
\n\nexport const environment = {\r\n production: true,\r\n environment: \'Production\',\r\n _webApiHost: \'prodsomename.company.com/api/\',\r\n};
Run Code Online (Sandbox Code Playgroud)\r\n我在environmrnt.test.ts中的配置如下,
\n\nexport const environment = {\r\n production: true,\r\n environment: \'Test\',\r\n _webApiHost: \'testsomename.company.com/api/\',\r\n};
Run Code Online (Sandbox Code Playgroud)\r\n我对 angular.json 文件的设置如下,
\n\n"configurations": {\r\n "production": {\r\n "fileReplacements": [ {\r\n "replace": "src/environments/environment.ts",\r\n "with": "src/environments/environment.prod.ts"\r\n } ],\r\n "optimization": true,\r\n "outputHashing": "all",\r\n "sourceMap": false,\r\n "extractCss": true,\r\n "namedChunks": …
Run Code Online (Sandbox Code Playgroud)build-pipeline azure-devops azure-pipelines-release-pipeline angular8
我创建了一个新的 asp.net(标准)web api 项目,现在我想在同一个项目中拥有前端逻辑(ASP.net MVC),我开始知道我们可以同时拥有客户端(MVC)和服务器(Web API) 应用程序在同一项目中。我试图找到要遵循的分步过程,但我找不到任何。如果有人可以提供我要遵循的步骤,我将不胜感激,因为这是我第一次从头开始构建应用程序。提前致谢。
.net ×1
angular8 ×1
architecture ×1
asp.net-mvc ×1
azure-devops ×1
azure-pipelines-release-pipeline ×1
c# ×1