heroku domainをほかのherokudomainに変える方法

はじめ:

➜ ibhiroba1 git:(bugfix) git remote -v
heroku git@heroku.com:ibhiroba1-0403.git (fetch)
heroku git@heroku.com:ibhiroba1-0403.git (push)
origin git@github.com:HOkn/ibhiroba1.git (fetch)
origin git@github.com:HOkn/ibhiroba1.git (push)

 

方法:
➜ ibhiroba1 git:(bugfix) git remote rm heroku
➜ ibhiroba1 git:(bugfix) git remote add heroku git@heroku.com:testhiroba.git

 

結果:
➜ ibhiroba1 git:(bugfix) heroku domains
=== testhiroba Domain Names
testhiroba.herokuapp.com

参考:

f:id:haruokny:20150413151929p:plain

 

 

エラー:No app specified. ! Run this command from an app folder or specify which app to use with

 

f:id:haruokny:20150413154606p:plain

 

 

To add a Heroku app as a Git remote, you need to execute heroku git:remote -a yourapp.

Source: Deploying with Git

shareimprove this answer
 
    
This is the solution if you cloned the repo. –  JGallardo Sep 24 '13 at 6:01
    
Thank you! It works like charm :) –  Romans 8.38-39 Sep 8 '14 at 6:21

 

 

 

問題:これをしたらエラー:

git push heroku bugfix:master
remote: ! Heroku has temporarily disabled this feature, please try again shortly.
remote: ! See http://status.heroku.com for current Heroku platform status.
fatal: unable to access 'https://git.heroku.com/ibhiroba1-0403.git/': The requested URL returned error: 50

 

なのでもう一度git remove heroku をしてheroku add domain をして pushしてみると:

 

! Heroku has temporarily disabled this feature, please try again shortly.
! See http://status.heroku.com for current Heroku platform status.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.