admin管理员组文章数量:1279047
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.
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.
Share Improve this question asked May 23, 2015 at 0:50 Ko OhhashiKo Ohhashi 9241 gold badge12 silver badges23 bronze badges1 Answer
Reset to default 13Yes, 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)
本文标签: javascriptHow to monitor serverside log when using Meteor and Meteor UpStack Overflow
版权声明:本文标题:javascript - How to monitor server-side log when using Meteor and Meteor Up - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741219834a2360758.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论