Comments (14)
https://github.com/fjc0k/docker-YApi#%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE
from docker-yapi.
https://github.com/fjc0k/docker-YApi#%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE
from docker-yapi.
from docker-yapi.
from docker-yapi.
你没用 gitlab 插件为啥要加上呢
from docker-yapi.
贪心了下 @fjc0k
from docker-yapi.
那你去看 gitlab 插件的配置,配完全。
from docker-yapi.
可以的 棒! @fjc0k
from docker-yapi.
等待 MongoDB 服务可用...
安装 YApi 插件...
- cd /yapi/vendors
- npm install yapi-plugin-add-user --no-audit
npm WARN [email protected] requires a peer of mongoose@^4.1.12 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jquery@>=1.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^0.14.0 || ^15.0.1 but none is installed. You must install peer dependencies yourself.
- [email protected]
added 1 package from 1 contributor in 29.347s
1 package is looking for funding
run npm fund
for details
- npm run build-client
[email protected] build-client /yapi/vendors
NODE_ENV=production ykit pack -m
Killed
尝试安装 YApi...
- node '--unhandled-rejections=strict' ./vendors/server/install.js
/yapi/vendors/node_modules/mongoose/lib/error/validation.js:30
Error.captureStackTrace(this);
^
Error [ValidationError]: user validation failed: username: Path username
is required.
at ValidationError.inspect (/yapi/vendors/node_modules/mongoose/lib/error/validation.js:59:24)
at formatValue (internal/util/inspect.js:690:31)
at inspect (internal/util/inspect.js:259:10)
at afterInspector (internal/errors.js:676:14)
at processPromiseRejections (internal/process/promises.js:192:9)
at processTicksAndRejections (internal/process/task_queues.js:98:32) {
errors: {
username: MongooseError [ValidatorError]: Path username
is required.
at new ValidatorError (/yapi/vendors/node_modules/mongoose/lib/error/validator.js:29:11)
at validate (/yapi/vendors/node_modules/mongoose/lib/schematype.js:838:13)
at /yapi/vendors/node_modules/mongoose/lib/schematype.js:887:11
at Array.forEach ()
at SchemaString.SchemaType.doValidate (/yapi/vendors/node_modules/mongoose/lib/schematype.js:847:19)
at /yapi/vendors/node_modules/mongoose/lib/document.js:1844:9
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
message: 'Path username
is required.',
name: 'ValidatorError',
properties: [Object],
kind: 'required',
path: 'username',
value: '',
reason: undefined,
'$isValidatorError': true
}
},
_message: 'user validation failed',
name: 'ValidationError'
}
关闭引导服务...
尝试启动 YApi...
log: -------------------------------------swaggerSyncUtils constructor-----------------------------------------------
log: 服务已启动,请打开下面链接访问:
http://127.0.0.1:3000/
log: mongodb load success...
from docker-yapi.
@fjc0k 加了一堆问题
from docker-yapi.
from docker-yapi.
npm run build-client
[email protected] build-client /yapi/vendors
NODE_ENV=production ykit pack -m
这一步好像经常卡死
from docker-yapi.
@fjc0k 大佬支撑一波呢
from docker-yapi.
应该是机器配置或者分配给容器的配置不够,导致 npm run build-client
被杀死,后续也就出错了。
这是 YApi 自带的构建命令,没有办法改进的,建议换机器或调整配置部署。
from docker-yapi.
Related Issues (20)
- 不能运行
- 设置YAPI_DB_USER、YAPI_DB_PASS之后,yapi-web运行报错
- 设置YAPI_DB_USER、YAPI_DB_PASS之后,yapi-web运行报错 HOT 2
- yapi-plugin-qsso 登录按钮不显示
- 无法上传postman json数据更新
- yapi-mongo exited HOT 2
- 您的CI挂了,导致dockerhub推送失败 HOT 3
- 更新不了,最新版本是1.10.2而不是1.20,在docker hub查询也是1.10.2 HOT 1
- 1.12.0 漏洞修复,镜像未更新成功 HOT 11
- 数据迁移重新部署后提示 等待 mongodb
- 登陆报504
- 该用户不存在
- 插件安装不了
- 增加内置插件
- yapi-mongo 的数据是一值存在吗
- 高级Mock保存不了
- 能不能给一个配置登录 MongoDB 服务的用户名和密码的docker-compose.yml啊 HOT 1
- 找不到插件 HOT 4
- Error: EROFS: read-only file system, mkdir '/sys/fs/cgroup/cpu/safeify' 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 docker-yapi.