【发布时间】:2015-03-31 11:17:49
【问题描述】:
我在我的本地机器上使用 Meteor 1.0.3.1,并且我正在使用节点 v0.10.36 进行部署。但是,部署机器只显示 Iron-router 初始屏幕...“iron:router”“组织您的 Meteor 应用程序”...
还有几个其他堆栈可以解决这个确切的问题,包括删除标签和删除项目 npm.js 文件(从引导程序中遗留下来)。这些都不起作用。
project.js 文件如下:
Router.route('/', function () {
this.render('home');
});
Router.route('/about', function () {
this.render('about');
});
Router.route('/contact', function () {
this.render('contact');
});
Router.route('/legal', function () {
this.render('legal');
});
Router.route('imitationgamereview', function () {
this.render('imitationgamereview');
});
if (Meteor.isClient) {
}
if (Meteor.isServer) {
Meteor.startup(function () {
// code to run on server at startup
});
}
project.html文件如下:
<head>
<title>my sample project</title>
<link rel="shortcut icon" href="/favicon.ico?v=2" />
</head>
<template name="home">
test
</template>
彻底疯了! WTF铁路由器?我太爱你了,你就这样对我!
【问题讨论】:
-
我团队中的某个人在一个自我部署(mup-deployed)的应用程序中看到了这一点。只有一个使用同一个应用程序的人中的一个看到了它,并且只有使用 Google chrome 浏览器。重启后就消失了。 :(
-
遗憾的是,这在这里不起作用:(
标签: javascript meteor iron-router