Glory to Russia
Glory to Russia

Reputation: 18712

How can I deploy a Sinatra-based Ruby web app to Heroku?

How can I deploy a Sinatra-based Ruby web app to Heroku?

I have a Sinatra-based web application. When I want to run it locally, I do following:

  1. In the command line, I go to the directory servers/dev.
  2. Run thin start -R songcontest.ru

Now I want to deploy the same application to Heroku. I followed the first few steps of a tutorial (step 1, step 2, step 3).

Now I want to run git push heroku master, which is the next step in deploying the app to Heroku. When I do it, I get the following error message:

remote:  !     Push rejected, no Cedar-supported app detected
remote: HINT: This occurs when Heroku cannot detect the buildpack
remote:       to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks

Push rejected

How can I fix it (make my application run on Heroku) ?

Upvotes: 0

Views: 421

Answers (2)

Glory to Russia
Glory to Russia

Reputation: 18712

When deploying from a different branch into Heroku's master branch, you need to specify the branch in the push command: git push heroku heroku:master.

Upvotes: 0

ddgd
ddgd

Reputation: 1717

Check out Deploying Rack-based Apps heroku docs. You'll need a config.ru file and potentially a Procfile to start your webserver.

Upvotes: 2

Related Questions