小编lea*_*r29的帖子

Azure管道从资源存储库读取文件

我在我的 azure-pipelines 模板中引用存储库,如下所示:

resources:
  repositories:

    - repository: MyRepo
      type: git
      name: MyRepoName
      ref: MyRepoRef
Run Code Online (Sandbox Code Playgroud)

我想知道是否可以读取引用存储库内的文件内容,该存储库内是另一个正在管道中执行的 yaml。

azure azure-devops

8
推荐指数
1
解决办法
1万
查看次数

使用 az apim api 更新 apim 中的 api

在我的 azure devops 管道中,我有一个任务 AzureCLI@2,它将 api 部署到 apim。如何使用 az apim api执行相同的任务来更新 api?我知道有一个操作可以做到这一点,但文档没有显示如何操作,而且我没有找到任何示例。我正在使用管道中生成的开放 api 文件来创建,并且我想用它来更新 api。

azure azure-api-management azure-cli azure-devops apim

5
推荐指数
1
解决办法
5326
查看次数

当我尝试与本地主机连接时,ERR_SSL_PROTOCOL_ERROR

我开始研究 node js,我尝试将 ionic 应用程序与我创建的后端 nodejs 应用程序连接,但我收到此错误:

选项https://localhost:3000/insert net::ERR_SSL_PROTOCOL_ERROR

import { Component, OnInit } from '@angular/core';
import { Http } from '@angular/http';
import { map } from 'rxjs/operators';

@Component({
  selector: 'app-cadastro-unidade',
  templateUrl: './cadastro-unidade.page.html',
  styleUrls: ['./cadastro-unidade.page.scss'],
})

export class CadastroUnidadePage implements OnInit {

  constructor(private http: Http) { }

  ngOnInit() {

  } 

  InsereDados(){
    let data = {
    };

    this.http.post('https://localhost:3000/insert', data).pipe(
            map(res => res.json())
        ).subscribe(response => {
            console.log('POST Response:', response);
        });
  }

}

app.get('/insert', function(req, res, next) {
var uri = "xxxx" …
Run Code Online (Sandbox Code Playgroud)

ssl localhost node.js ionic-framework

1
推荐指数
1
解决办法
7902
查看次数