Dashing仪表板不会显示在Windows上

时间:2015-06-02 17:57:17

标签: ruby curl sinatra dashing

我完全按照以下方式运行:

dashing new project
cd project
bundle install && dashing start

它列出了“使用”输出并启动了服务器。 Output here

访问localhost:3030会产生一个简单的灰色网页,其中没有任何内容,但页面顶部的文字Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \http://localhost:3030/widgets/welcome。页面为generated source code is here

运行curl命令,修改为在Windows上运行,似乎有效,但它在灰色网页上没有任何改变。

curl -X POST -H "Content-Type: application/json" -d "{ \"auth_token\": \"YOUR_AUTH_TOKEN\", \"text\": \"Hey, Look what I can do!\" }" http://localhost:3030/widgets/welcome

运行服务器的控制台显示以下内容:

127.0.0.1 - - [02/Jun/2015 11:55:58] "POST /widgets/welcome HTTP/1.1" 204 - 0.0000

1 个答案:

答案 0 :(得分:0)

我明白了。您必须安装Node.JS或某种Javascript引擎。