I'm using Meteor and Meteor UP for deployment. So far so good. I can deploy my project to my test Ubuntu server.
My problem is I don't know how to debug on server. If I use node.js and express, I can just write console.log("some error") to see logs.
The log file seems /var/log/upstart/.log But I could only find
>> stepping down to gid: meteoruser
>> stepping down to uid: meteoruser
Is there any way to output "console.log(something)" ?
I use Ubuntu-14.04 and Meteor 1.1.0.2.
Yes, there is. Do console.log(something)
as you normally would in your server-side code. Then from the Ubuntu server in your meteor-up directory (same place where you do mup deploy
), do mup logs -f
That will allow you to monitor the logs in real-time.
UPDATE: For those using the new mupx
, you can check the logs with mupx logs -f
(ref)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With