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

easymock init --> easy-mock-cli · { error: 'Internal Server Error' } #5

Open
zuosamu opened this issue Apr 9, 2018 · 12 comments
Open

Comments

@zuosamu
Copy link

zuosamu commented Apr 9, 2018

服务器爆炸了吗?

@KarenChuang
Copy link

image

同,什么问题呢?

@Ives7
Copy link

Ives7 commented Jun 8, 2018

服务器挂了吗?

@17biubiu
Copy link

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

@mo-ocean
Copy link

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

@WangJia-mm
Copy link

{
"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' } ,这是还需要配置啥吗,文档里也没个提示

@chuangker
Copy link
Contributor

{
  "host":"http://0.0.0.0:7300"
}

@WangJia-mm
Copy link

还是报错,报 connect ECONNREFUSED 0.0.0.0:7300

@WangJia-mm
Copy link

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

@chuangker
Copy link
Contributor

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

@liuyingqq123
Copy link

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

@liuxiaodeng
Copy link

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

@ZanderZhang
Copy link

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

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

10 participants