2

I've cloned Backbone boilerplate which comes with an example Todo app. I have also read that the boilerplate comes with a development server, but I don't know how to start it. In the tutorial, it says you can run this command

node build/server

but I get an error saying that it can't find the module /build/server

Can anyone explain?

4

2 回答 2

2

如果您已经安装了nodejs,它应该很简单,只需将目录更改为 TODO 应用程序的根目录并运行以下命令(尽管您可能还需要将路径添加node到您的环境设置中):

bbb server

然后,您应该能够访问 localhost:8000 上的示例。

于 2012-10-29T11:00:10.357 回答
0

仅供参考,您可以更改 grunt.js 中的服务器值以在特定主机和端口上运行 bbb。

server: {
   host: "10.111.X.1", port: 3303,
   ...
}
于 2012-12-11T21:14:01.330 回答