How can I make console.log() output show up in the terminal where I run the server?
On the server it just works.
From the client you have to call a server method:
// Server
Meteor.methods({
logToConsole: function(msg) {
console.log(msg)
}
})
// Client
Meteor.call("logToConsole", "Hello World")
3 Likes
You’re right. I was confused by several other things. Thanks!
How can I do this but for the “real server” (my VPS, my staging server)? I am deploying with mupx if that matters.
1 Like
I would like to know that also.