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

39 lines
952 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!"
2014-07-08 03:08:24 +08:00
Meteor.Shapes.remove({})
console.log "cleared Shapes Collection!"
2014-07-08 04:58:50 +08:00
Meteor.Slides.remove({})
console.log "cleared Slides Collection!"
2014-07-26 00:36:31 +08:00
Meteor.UsersSub = null
Meteor.ChatSub = null
Meteor.MeetingsSub = null
Meteor.ShapesSub = null
Meteor.SlidesSub = null
# create create a PubSub connection, start listening
Meteor.redisPubSub = new Meteor.RedisPubSub(->
console.log "created pubsub")