Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zip deploy failed for web apps created with region "China-East" #586

Closed
SummerSun opened this issue Sep 18, 2018 · 1 comment
Closed

Zip deploy failed for web apps created with region "China-East" #586

SummerSun opened this issue Sep 18, 2018 · 1 comment
Assignees
Milestone

Comments

@SummerSun
Copy link

SummerSun commented Sep 18, 2018

Deploy a web app to Azure Web App which was created in Azure China met exception:

image

From the investigation, it turns out that the wrong default host name was returned after creation. We could not use .net for all web apps.
But the default host name is corrected when we do the deployment again after a while. Thus the deployment could be accomplished successfully too.

@Override
    public String defaultHostName() {
        if (inner().defaultHostName() != null) {
            return inner().defaultHostName();
        } else {
            return "http://" + name() + ".azurewebsites.net";
        }
}

@jianghaolu
Copy link
Contributor

Fixed as part of #651.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants