YuKagi
YuKagi

Reputation: 2501

Sinatra app won't publish to Heroku

I have a very simple Sinatra app that I'm trying to publish to Heroku. I've got the accounts created, and the app runs fine locally, but when I type:

git push heroku master (from within the applications root folder)

I get:

-----> Heroku receiving push
-----> Removing .DS_Store files
!     Heroku push rejected, no Rails or Rack app detected

To [email protected]:pure-mist-880.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:pure-mist-880.git' 

My config.ru file is super simple (and possibly the problem, as I've seen a couple of different ways to write one...):

require './raffle'

map '/' do
run Raffler
end

But it all runs fine locally.
What am I missing?

Upvotes: 0

Views: 754

Answers (1)

Steve
Steve

Reputation: 15736

Simple is good. I got a Sinatra application working on Heroku with this config.ru file:

require './app'
run App

The app.rb contains something like this (its a modular style app):

class App < Sinatra::Base
  get '/' do
    # ...
  end
end

Upvotes: 1

Related Questions