使用Torquebox获取404 for Sinatra hello world app

时间:2016-06-02 14:48:55

标签: sinatra torquebox

以下是app文件夹中的文件:

.href

// get all links in the head (including CSS)
var allLinks = document.head.getElementsByTagName('link');
// find and replace the element
for (var i = 0; i < allLinks.length; i++) {
    if ( allLinks[i].href = "old/url/to/css/file.css") {
        allLinks[i].href = "file:///C:/Users/Ma%C5%9Blan/Desktop/Site/bootstrap-3.3.6-dist/project1a.css";
    }
}

我安装了扭矩箱:# app.rb require 'sinatra' get '/' do "Hello World!" end

当我运行# config.ru require './app' run Sinatra::Application 时,我看到很多输出,但似乎它开始正常。

gem install torquebox-server -v 3.1.2

当我访问localhost时:8080我得到404 。为什么?如何解决?

0 个答案:

没有答案