【发布时间】:2012-02-26 19:57:44
【问题描述】:
我有一个非常简单的 Sinatra 应用程序,我正试图将它发布到 Heroku。我已经创建了帐户,并且应用程序在本地运行良好,但是当我输入时:
git push heroku master (from within the applications root folder)
我明白了:
-----> Heroku receiving push
-----> Removing .DS_Store files
! Heroku push rejected, no Rails or Rack app detected
To git@heroku.com:pure-mist-880.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:pure-mist-880.git'
我的 config.ru 文件非常简单(可能是问题所在,因为我已经看到了几种不同的编写方法……):
require './raffle'
map '/' do
run Raffler
end
但它在本地运行良好。
我错过了什么?
【问题讨论】: