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
参考:
エラー:No app specified. ! Run this command from an app folder or specify which app to use with
53
|
To add a Heroku app as a Git remote, you need to execute Source: Deploying with Git |
||||||||
|
問題:これをしたらエラー:
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.