Comments (12)
同,什么问题呢?
from easy-mock-cli.
服务器挂了吗?
from easy-mock-cli.
将你的配置.easy-mock.js下的id改为数字,别默认
projects: [ { id: "52fef6ac5e43ae5dbea5eb53", // 例:58fef6ac5e43ae5dbea5eb53 name: "test" // �该项目下的 API 生成之后会被放到 api/demo 目录下 } ]
from easy-mock-cli.
easy-mock-cli · 找不到 ".easy-mock.js" 配置文件.
from easy-mock-cli.
{
"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.
{
"host":"http://0.0.0.0:7300"
}
from easy-mock-cli.
还是报错,报 connect ECONNREFUSED 0.0.0.0:7300
from easy-mock-cli.
是要使用本地的easy mock吗,还是要怎么的
from easy-mock-cli.
如果使用在线服务的项目,就不需要 host
这个字段。
from easy-mock-cli.
我想知道, 如果配置了host的话, projects里应该怎么配呢? 有的时候可能不需要在官网mock假数据, 而是使用cli生成api代码, 方便开发
from easy-mock-cli.
@KarenChuang 把配置项的id 改成你创建的在线项目的id 即可
from easy-mock-cli.
"host":"http://localhost:7300",
我的这样可以
from easy-mock-cli.
Related Issues (11)
- init命令报错 HOT 3
- easy-mock-cli · certificate has expired HOT 1
- 请教下、下载了项目 我怎么基于这个项目进行运行啊?
- 使用easymock-cli时执行命令 easymock init . 报socket hang up 。 nodejs 为v8.15 HOT 1
- easy-mock-cli · connect ECONNREFUSED 127.0.0.1:80
- 生成api文件夹之后怎么使用 HOT 4
- easymock每次都重新下载模板 HOT 1
- easymock init时报错 HOT 3
- projects配置项, 当id重复时, 可否都生成, 而不是只生成第一个 HOT 1
- easy-mock-cli · $$.joinUrl is not a function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easy-mock-cli.