bigbluebutton-Github/labs/meteor-client/server/server.coffee

29 lines
672 B
CoffeeScript
Raw Normal View History

###
Meteor.startup(function () {
// Add seed data if first time server starting
CreateSeedData();
// Publish data collections
PublishCollections();
// Set collection permissions
SetCollectionPermissions();
});
###
Meteor.startup ->
console.log "server start"
#remove all data
2014-06-27 22:38:08 +08:00
Meteor.Users.remove({})
console.log "cleared Users Collection!"
Meteor.Chat.remove({})
console.log "cleared Chat Collection!"
Meteor.Meetings.remove({})
console.log "cleared Meetings Collection!"
# create create a PubSub connection, start listening
Meteor.redisPubSub = new Meteor.RedisPubSub(->
console.log "created pubsub")