24 lines
482 B
CoffeeScript
Executable File
24 lines
482 B
CoffeeScript
Executable File
###
|
|
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
|
|
clearCollections()
|
|
|
|
# create create a PubSub connection, start listening
|
|
Meteor.redisPubSub = new Meteor.RedisPubSub(->
|
|
console.log "created pubsub")
|