2015-04-23 41 views
0

我已經建立了西納特拉一個簡單的石頭,剪子,布的應用程序,但由於某些原因,當我運行shotgun app.server.rb,去localhost:9393,我收到以下錯誤:西納特拉應用程序無法正常工作

Sinatra doesn’t know this ditty. 
Try this: 
get/do 
    Hello World 
end 

而且在控制檯:

Failed to load resource: the server responded with a status of 404 (Not Found)

這裏是我的代碼:https://github.com/SammyAbukmeil/rps-challenge

對我來說,這似乎如果server.rb文件不作爲鰭所以我試着玩弄指向哪裏可以找到視圖的代碼行,但似乎沒有任何工作。

+0

如果你不使用霰彈槍,它工作嗎? – matt

+0

使用紅寶石app/server.rb工作!謝謝亞光 –

回答

0

不使用霰彈槍解決了我的問題,我用ruby app/server.rb

+1

如果你仍然想使用Shotgun,請嘗試使用'shotgun config.ru'。 – matt

+0

真棒謝謝馬特,在我被允許的兩天內會接受這個答案! :d –