我在本地计算机上使用Meteor 1.0.3.1,我正在使用节点v0.10.36进行部署.但是,部署机器只显示铁路由器启动画面......"铁:路由器""组织你的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
});
}
Run Code Online (Sandbox Code Playgroud)
project.html文件如下:
<head>
<title>my sample project</title>
<link rel="shortcut icon" href="/favicon.ico?v=2" />
</head>
<template name="home">
test
</template>
Run Code Online (Sandbox Code Playgroud)
完全疯狂!WTF铁路由器?我爱上了你,那么你就这样对我这么做!