Rails 3.2:Heroku 推送被拒绝,未检测到 Cedar 支持的应用程序 [英] Rails 3.2: Heroku push rejected, no Cedar-supported app detected

查看:33
本文介绍了Rails 3.2:Heroku 推送被拒绝,未检测到 Cedar 支持的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Rails 新手在这里.我正在尝试将我的 Rails 3.1/Ruby 1.9.3-p0 应用程序部署到 Heroku,并按照 Heroku 执行了所有步骤.但我不断遇到:

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 推送被拒绝,未检测到 Cedar 支持的应用

Heroku push rejected, no Cedar-supported app detected

我已经尝试了这个问题中的所有建议 但至今未成功.

I've tried all the suggestions in this question but so far unsuccessful.

推荐答案

我也遇到过类似的拒绝.对我有用的是重新初始化 .git 文件.

I have encountered a similar rejection. What worked for me was reinitializing the .git file.

在命令行中尝试:

rm -rf .git
git init
git add .
git commit -am "Reinitialize"
heroku create --stack cedar
git push heroku master

这篇关于Rails 3.2:Heroku 推送被拒绝,未检测到 Cedar 支持的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆