Rails newbie here. I'm trying to deploy my Rails 3.1/Ruby 1.9.3-p0 app to Heroku and have followed all the steps according to Heroku. But I keep running into:
Heroku push rejected, no Cedar-supported app detected
I've tried all the suggestions in this question but so far unsuccessful.
I have encountered a similar rejection. What worked for me was reinitializing the .git file.
Try in the command line:
rm -rf .git
git init
git add .
git commit -am "Reinitialize"
heroku create --stack cedar
git push heroku master
I Have just solved this problem with one of my apps. If you check the documentation, the Cedar Stack searches for the Gemfile in the root directory. In my case, the root directory only had the folder containing my app with the Gemfile inside it.
So, what you need to do is to initialize a new git repo inside this folder and add the remote:
$ cd my_app_folder
$ git init
$ git add .
$ git commit -m "Heroku commit"
$ git remote add heroku [email protected]:my-app-in-heroku.git
$ git push heroku master
And you're done!
Whenever I encounter this error, I check the following two things:
If you accidentally put the parent directory of your rails application into version control. Delete the .git
directory inside this parent directory and initialize a new repository but this time under the Rails application directory.
Try
$ git init
$ git add .
$ git commit -m "Change to something"
Then run
git push heroku master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With