Reputation: 18712
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:
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
How can I fix it (make my application run on Heroku) ?
Upvotes: 0
Views: 421
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
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