You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
429 B
JavaScript
17 lines
429 B
JavaScript
var fs = require('fs');
|
|
var Yaml = require('yaml');
|
|
var Pusher = require('pusher');
|
|
|
|
var config = Yaml.parse(fs.readFileSync('../config.yml', {encoding: 'utf-8'}));
|
|
|
|
var pusher = new Pusher({
|
|
appId: config.service.pusher.app_id,
|
|
key: config.service.pusher.key,
|
|
secret: config.service.pusher.secret,
|
|
cluster: config.service.pusher.cluster
|
|
});
|
|
|
|
pusher.trigger('debug', 'echo', {
|
|
msg: "推送系统应该已经好了"
|
|
});
|