小编Dou*_*oum的帖子

Gitlab和CI服务器

我最近将一个repo从bitbucket移到了gitlab.我现在想要一个CI(travis或无人机)与我的回购工作.

经过一番阅读后,我发现gitlab构建了自己的CI(gitlab CI),但需要自我托管,似乎无法在heroku上设置.

我不想管理AWS实例只是为了获得CI服务器,因为travis,无人机(可能还有一些其他我不知道的)已经存在并且可以完成这项工作.

我错过了什么吗?有没有办法(快速和简单)gitlab CI(我重申,我不会采取自我管理的服务器)或我将不得不移动到github或回到bitbucket?

Gitlab确实是一个不错的产品,但缺乏对CI服务器的支持是一个障碍!

谢谢

gitlab gitlab-ci

6
推荐指数
2
解决办法
1801
查看次数

节点 - Mongoose 3.6 - 使用填充字段对查询进行排序

我正在尝试进行远程网格使用的查询,因此我将不得不在每个字段上处理sort(asc,desc).

以下是架构:

var customerSchema = new mongoose.Schema({
status: {type: mongoose.Schema.Types.ObjectId, ref: 'Status'},
contact: {type: mongoose.Schema.Types.ObjectId, ref: 'Contact'}
}, { collection: 'Customer' });

customerSchema.virtual('contactName').get(function () {
   if (this.contact && this.contact.get) {
       return this.contact.get('firstName') + ' ' + this.contact.get('lastName');
   }

   return '';
});

customerSchema.virtual('statusName').get(function () {
   if (this.status && this.status.get) {
       return this.status.get('name');
   }

   return '';
});

customerSchema.set('toJSON', { virtuals: true });
customerSchema.set('toObject', { virtuals: true });
mongoose.model('Customer', customerSchema);

// STATUS
var statusSchema = new mongoose.Schema({}, { collection: 'Status' });
mongoose.model('Status', statusSchema); …
Run Code Online (Sandbox Code Playgroud)

mongoose mongodb node.js

2
推荐指数
1
解决办法
3696
查看次数

Electron - Linux - 黑屏

我有一个非常基本的应用程序,它在 Windows 下编码并且运行良好。

我现在想在我的树莓派(raspbian)上测试它。我做了这个包(针对linux armv7l)。我使主文件可执行(chmod +x myfile),然后运行它(./myfile)。Electron 启动没有问题,但我只有一个白色页面(就像没有加载 html/js 一样)。我完全没有错误...

有什么方法可以调试吗?有人已经添加了这个问题吗?我确实尝试过 Electron@1.8.3 和 Electron@2.0.0。ui部分是用Vue。

如果有人想看看,这里是代码(小项目,只是一个游乐场): https: //github.com/doumlap/shineos

raspberry-pi electron

2
推荐指数
2
解决办法
1729
查看次数

标签 统计

electron ×1

gitlab ×1

gitlab-ci ×1

mongodb ×1

mongoose ×1

node.js ×1

raspberry-pi ×1