簡體   English   中英

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

[英]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。 這是正確的嗎 ? 如果不正確,該怎么辦?

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

    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.

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