簡體   English   中英

錯誤:將Rails 2.3.8應用程序部署到heroku

[英]Error: deploying Rails 2.3.8 app to heroku

感謝您對如何使用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才能開始工作。 我也這樣做了,並將其添加到我的應用程序的根目錄,但沒有運氣。

您可以提供應用的布局嗎? 確保在本地運行bundle install並檢查您的Gemfile; 它可能配置不正確,或者您尚未將新文件(包括非常重要的Gemfile.lock )添加到git中。

另請參閱https://devcenter.heroku.com/articles/ruby-support#rails_2x_applications

嘗試捆綁您的gemfile並確保它完整。 如果這不起作用,則可以嘗試將應用程序推入一個竹堆棧:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM