0

希望能深入了解如何使用 Heroku 部署我的 Rails 2.3.8。当我尝试推送到 heroku 时,我收到以下错误消息:

    git push heroku master
    Enter passphrase:
    Counting objects:3, done.
    Compressing objects: 100 % (2/2), done.
    Writing onject: 100 % (3/3), 4.34 KiB, done.
    Total 3 (delta 0), reused 0 (delta 0)

    -----> Heroku receiving push
    Heroku push rejected, no Cedar-supported app detected

    To git@heroku.com: falling-sunrise.git
    [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'git@heroku.com:falling-sunrise.git'

我还附上了我的命令行屏幕的实际屏幕截图。我在某处读到我可能必须编写一个 gemfile 才能推动工作。我也这样做并将其添加到我的应用程序的根目录中,但没有运气。

4

2 回答 2

0

Can you provide the layout of your app? Make sure to run bundle install locally and to check your Gemfile; it may not be configured correctly, or you haven't added it the new files (including the ever-important Gemfile.lock) to git.

Also see https://devcenter.heroku.com/articles/ruby-support#rails_2x_applications

于 2012-07-18T23:59:58.380 回答
0

尝试捆绑您的 gemfile 并确保它是完整的。如果这不起作用,您可以尝试将您的应用推送到竹堆栈:

https://devcenter.heroku.com/articles/bamboo

于 2012-07-19T00:02:30.317 回答