在控制台中,我输入了(调度程序是我的应用程序的目录):
C:\Meteor\scheduler>meteor logs scheduler
我明白了:
Sorry, that site belongs to a different user.
You are currently logged in as clayshannon.
Either have the site owner use 'meteor authorized --add' to add you as an
authorized developer for the site, or switch to an authorized account with
'meteor login'.
什么?!?该网站如何属于不同的用户?我如何改变它或将流星的肩膀钉在地板上并让它为叔叔哭泣并承认我确实是网站所有者?
好的,我现在明白了;我成功地查看了我创建的公共站点的日志;它只显示今天的日志。这是默认的吗?该网站已经使用了几天,但它显示的是从今天早上到最近。
答案 0 :(得分:1)
您是部署scheduler.meteor.com的人吗?听起来你只是想看看当地流星应用程序的日志。
当您输入meteor
时,您要求查看scheduler.meteor.com的日志。因此,除非您确实是将此网站部署到meteor.com的人,否则让他们查看其他人的日志并不是很好,是吗?
如果您想要的是本地应用的日志,那么它们就是您在键入C:\Meteor\scheduler>meteor
[[[[[ C:\Meteor\scheduler ]]]]]
=> Started proxy.
=> Started MongoDB.
=> Started your app.
=> App running at: http://localhost:3000/
I20150821-17:41:28.267(2)? This is a log entry!
以启动应用后看到的内容:
$ meteor logout
Logged out.
$ meteor login
Username: DummyAccount
Password:
Logged in as dummyaccount. Thanks for being a Meteor developer!
$ meteor deploy --delete scheduler
如果您确实部署了scheduler.meteor.com,我担心您是在另一个帐户下进行的。在我错误地创建了第二个帐户后,它最近发生在我身上。将它链接回我的主要流星帐户是相当麻烦的。基本上我所做的是在登录以前的帐户时删除网站:
$ meteor logout
Logged out.
$ meteor login
Username: RealAccount
Password:
Logged in as realaccount. Thanks for being a Meteor developer!
$ meteor deploy scheduler
然后重新登录我的主要部署:
$sql = "SELECT * INTO OUTFILE \"".$file."\"
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'
LINES TERMINATED BY \"\n\"
FROM `cbmarker`.`cbdata`";
if(sizeof($SQLArray) > 0)
{
$sql = $sql . " WHERE " . join(" AND ", $SQLArray) .";";
}
$result = mysql_query($sql);