简体   繁体   中英

Rails- How to deploy to another url

I have migrated my Heroku app to the eu-region. But I cannot deploy to the new url. It deploys to the original url only. How can I specify with url to deploy to from the terminal?

Edit your file:

.git/config

And change the url path under the [remote "heroku"]

sample:

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
    hideDotFiles = dotGitOnly
[remote "heroku"]
    url = #CHANGE HERE TO THE NEW ONE
    fetch = +refs/heads/*:refs/remotes/heroku/*
[branch "master"]
    remote = heroku
    merge = refs/heads/master

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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