[英]Why deploy my rails app on heroku does not work?
我是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。 这是正确的吗 ? 如果不正确,该怎么办?
我无法部署。 我有以下消息:
git push heroku master一切都是最新的
我的Rails应用程序还没有运行。 有人可以解释一下吗?
谢谢
首先使用-删除当前的远程heroku引用(即指向bitbucket remote)。
git remote rm heroku
添加然后将heroku remote添加到您的仓库中-
git remote add heroku git@heroku.com:aqueous-plateau-17182.git
希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.