-
## DESC
![image](https://user-images.githubusercontent.com/29453053/28060348-7513a88a-6659-11e7-8bbb-75a4c8f21a59.png)
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
根据官网提供的例子,修改 /src/common/config/config.production.js 的 配置 重启后仍然获取不到value
```
#!/bin/sh
cd ~/ro_read_online; # 进入项目根目录
nodepid=`ps auxww | grep node | grep production.js | grep -v grep | a…
ckken updated
7 years ago
-
刚看了一下3.0的文档,数据库模型是不是只能支持MySQL?
![3ae3931172188e9d5ab09e614794240](https://user-images.githubusercontent.com/19792747/28061133-0cdc193e-665c-11e7-892c-433070d72f49.png)
2.x版本支持MySQL、MongoDB、Postgre…
-
本地运行没事, 我不晓得在服务器上部署是不是还需要x执行权限?
我是git代码拉取到服务器上,
然后npm install
然后 npm start
接着就出现下面这些错误!
提示: 好像是语法解析错误, 但是语法确实没有问题, 校验过!
```
> weixiao@0.0.1 start /home/wwwroot/node/e.weixiao.com
> node dev…
-
## DESC
使用Mongo作为数据库,查询_id在一个数组中数据,采用如下方式:
let data = await this.model('current').where({_id:{$in: ['590fda043ee6502444f1ef4a']}}).select();
无结果(该数据存在)
然后怀疑是_id类型的问题,引入
import ObjectID from 'mong…
-
## DESC
您的原始碼
values -1) {
return Validator.required(value);
}
return true;
};
```
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
mysql数据库现有的表名为大写,linux大小写敏感,导致thinkjs提示找不到表
Error: ER_NO_SUCH_TABLE: Table 'hbpd.APP_colleaguehelp' doesn't exist
## ENV
Platform:
ubuntu 16.04
Node.js Version:
6.10.2
ThinkJS …
-
在post请求的时候如何获取这个id的参数?
ThinkJS Version:2.2.x
-
当某字段传参为 '' (空字符串)
取值时 this.post() 候返回 undefined 是否更加合理(以未传参处理)?
```js
// 数组检测
this.validate({
arr : {
array: true,
children: {
int : {min:1,max:99},
},
}
})
// 当传参为 '…
-
## DESC
src/common/config/adapter.js 添加如下配置
正是环境 production 日志为 file 而不是 dataFile 日志目录 /runtime/logs/file.log
```
exports.logger = {
'type': isDev ? 'console' : 'dateFile',
'console': {
…
ckken updated
7 years ago