【问题标题】:Dashing dashboard won't display on Windows破折号仪表板不会在 Windows 上显示
【发布时间】:2015-06-23 01:00:29
【问题描述】:

我运行了以下内容:

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

【问题讨论】:

    标签: ruby curl sinatra dashing


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-30
      • 1970-01-01
      • 2020-10-01
      • 2020-03-15
      • 2019-05-18
      • 2017-10-10
      相关资源
      最近更新 更多