使用
将Meteor应用更新为0.6.5后meteor update
并将其部署到我的共享服务器(webfaction)。我没有更改应用程序时出现了一个新错误:
/home/me/webapps/meteor/bundle/programs/server/boot.js:184
}).run();
^
Error: a route URL prefix must begin with a slash
at _.extend.declare (packages/routepolicy/routepolicy.js:95)
at new StreamServer (packages/livedata/stream_server.js:23)
at new Server (packages/livedata/livedata_server.js:1029)
at Package (packages/livedata/server_convenience.js:10)
at packages/livedata.js:3907:4
at packages/livedata.js:3918:3
at /home/me/webapps/meteor/bundle/programs/server/boot.js:153:10
at Array.forEach (native)
at Function._.each._.forEach (/home/me/webapps/meteor/bundle/programs/server/node_modules/underscore/underscore.js:79:11)
at /home/me/webapps/meteor/bundle/programs/server/boot.js:80:5
降级到0.6.4.1解决了这个问题。
我非常想理解为什么错误来自0.6.5
答案 0 :(得分:11)
检查您的ROOT_URL。确保它以http://
开头答案 1 :(得分:0)
它可能与0.6.5中对包API的更改有关。请参阅发行说明 - http://www.meteor.com/blog/2013/08/14/meteor-065-namespacing-modularity-new-build-system-source-maps
这个流星话题线 - https://groups.google.com/d/topic/meteor-talk/BbrjGcGGIzc/discussion