Git Product home page Git Product logo

Comments (12)

KarenChuang avatar KarenChuang commented on May 24, 2024

image

同,什么问题呢?

from easy-mock-cli.

Ives7 avatar Ives7 commented on May 24, 2024

服务器挂了吗?

from easy-mock-cli.

17biubiu avatar 17biubiu commented on May 24, 2024

将你的配置.easy-mock.js下的id改为数字,别默认
projects: [ { id: "52fef6ac5e43ae5dbea5eb53", // 例:58fef6ac5e43ae5dbea5eb53 name: "test" // �该项目下的 API 生成之后会被放到 api/demo 目录下 } ]

from easy-mock-cli.

mo-ocean avatar mo-ocean commented on May 24, 2024

easy-mock-cli · 找不到 ".easy-mock.js" 配置文件.

from easy-mock-cli.

WangJia-mm avatar WangJia-mm commented on May 24, 2024

{
"output": "/easy-mock/api",
"template": "axios",
"host":"0.0.0.0:7300",
"projects": [
{
"id": "你要创建的 Easy Mock 项目的 id",
"name": "demo"
}
]
}
上面的配置,报下面的错
easy-mock-cli · connect EHOSTUNREACH 0.0.28.132:80 - Local (10.12.129.88:62259)

不配置host,就报 { error: 'Internal Server Error' } ,这是还需要配置啥吗,文档里也没个提示

from easy-mock-cli.

chuangker avatar chuangker commented on May 24, 2024
{
  "host":"http://0.0.0.0:7300"
}

from easy-mock-cli.

WangJia-mm avatar WangJia-mm commented on May 24, 2024

还是报错,报 connect ECONNREFUSED 0.0.0.0:7300

from easy-mock-cli.

WangJia-mm avatar WangJia-mm commented on May 24, 2024

是要使用本地的easy mock吗,还是要怎么的

from easy-mock-cli.

chuangker avatar chuangker commented on May 24, 2024

如果使用在线服务的项目,就不需要 host 这个字段。

from easy-mock-cli.

liuyingqq123 avatar liuyingqq123 commented on May 24, 2024

我想知道, 如果配置了host的话, projects里应该怎么配呢? 有的时候可能不需要在官网mock假数据, 而是使用cli生成api代码, 方便开发

from easy-mock-cli.

liuxiaodeng avatar liuxiaodeng commented on May 24, 2024

@KarenChuang 把配置项的id 改成你创建的在线项目的id 即可

from easy-mock-cli.

ZanderZhang avatar ZanderZhang commented on May 24, 2024

"host":"http://localhost:7300",
我的这样可以

from easy-mock-cli.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.