【发布时间】: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
【问题讨论】: