简体   繁体   English

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

[英]Why deploy my rails app on heroku does not work?

I am new on Ruby/Rails application development. 我是Ruby / Rails应用程序开发的新手。 I already love Ruby/Rails because it's easy to learn. 我已经很喜欢Ruby / Rails,因为它很容易学习。 I've built an Rails application and i try to deploy on Heroku. 我已经构建了一个Rails应用程序,并尝试在Heroku上进行部署。 When i type : 当我输入时:

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

I don't have the following message : 我没有以下消息:

Git remote heroku added

I think there is a problem with my remote : 我认为遥控器存在问题:

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.There are remote but heroku refers to bitbucket. 1.有远程,但是heroku指的是bitbucket。 Is it correct ? 这是正确的吗 ? If no correct, how to do, please ? 如果不正确,该怎么办?

  1. I cannot deploy. 我无法部署。 I have the following message : 我有以下消息:

    git push heroku master Everything up-to-date git push heroku master一切都是最新的

My rails application is not alive. 我的Rails应用程序还没有运行。 Is someone could explain me, please ? 有人可以解释一下吗?

Thanks 谢谢

First delete the current remote heroku reference(ie pointing to bitbucket remote ) with - 首先使用-删除当前的远程heroku引用(即指向bitbucket remote)。

git remote rm heroku

Add then add heroku remote to your repo - 添加然后将heroku remote添加到您的仓库中-

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

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM