为什么在heroku上部署我的rails应用程序不起作用?

时间:2016-03-09 06:00:28

标签: ruby-on-rails ruby ruby-on-rails-3 heroku deployment

我是Ruby / Rails应用程序开发的新手。我已经喜欢Ruby / Rails了,因为它很容易学习。我已经构建了一个Rails应用程序,我尝试在Heroku上部署。 当我输入:

heroku create
Creating app... done, stack is cedar-14
https://aqueous-plateau-17182.herokuapp.com/ | https://git.heroku.com/aqueous-plateau-17182.git

我没有以下消息:

Git remote heroku added

我认为我的遥控器存在问题:

git remote -v
heroku  git@bitbucket.org:pracede/hubapp.git (fetch)
heroku  git@bitbucket.org:pracede/hubapp.git (push)
origin  git@bitbucket.org:pracede/hubapp.git (fetch)
origin  git@bitbucket.org:pracede/hubapp.git (push)

git config --list | grep heroku
remote.heroku.url=git@bitbucket.org:pracede/hubapp.git
remote.heroku.fetch=+refs/heads/*:refs/remotes/heroku/*

1.有远程但heroku指的是bitbucket。这是对的吗 ? 如果不对,怎么办,请?

  1. 我无法部署。我有以下消息:

    git push heroku master 一切都是最新的

  2. 我的rails应用程序尚未运行。请问有人可以解释一下吗?

    由于

1 个答案:

答案 0 :(得分:0)

首先使用 -

删除当前的远程heroku引用(即指向bitbucket remote)
git remote rm heroku

添加然后将heroku远程添加到您的仓库 -

git remote add heroku git@heroku.com:aqueous-plateau-17182.git

希望这有帮助!

相关问题