Rails 3.2: Heroku push rejected, no Cedar-supported app detected

前端 未结 7 2369
南方客
南方客 2020-12-02 16:16

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:

Herok

7条回答
  •  醉梦人生
    2020-12-02 16:23

    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 git@heroku.com:my-app-in-heroku.git
    $ git push heroku master
    

    And you're done!

提交回复
热议问题