Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

easy-mock-cli · certificate has expired #11

Open
zyzweb opened this issue Dec 14, 2019 · 1 comment
Open

easy-mock-cli · certificate has expired #11

zyzweb opened this issue Dec 14, 2019 · 1 comment

Comments

@zyzweb
Copy link

zyzweb commented Dec 14, 2019

image
提示过期怎么处理?

@Yangerle
Copy link

Yangerle commented Apr 15, 2020

@zyzweb

应该是配置文件没弄好。
需要把host也配置上。

// .easy-mock.js 配置文件
 
{
  host: 'http://localhost:8080/',        // easy-mock的源,没有本地部署的话不用写,本地部署则填本地服务地址
  output: "../",                       // 生成 API 的基础目录
  template: "../",                       // 指定模板,这里用本地写的模板
  projects: [                           // 可以有多个模板来源
    {
      "id": "你要创建的 Easy Mock 项目的 id",    // 刚刚记下来的 Project ID
      "name": "api"                         // 生成的output目录下的文件名
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants