简体   繁体   中英

Deploying AngularJS app to Azure via github not working

Long story short, we have an old, ill-maintained web app hosted in a google cloud account we don't have access to anymore, so we want to move it over to our company Azure account.

In Azure, we created a new web app, and set it to pull from our repo. First build failed, but that's because it was using a really old Kudu deployment script. So I generated a new one (using azure-cli) and pushed the new script. In Azure, the build succeeded now, but when I go to the url for the site, nothing is there. As far as I can tell, the app is never starting.

Here's all of the information that I could think of that might be relevant. I don't fully understand all of the gruntfile stuff (I just know I type 'grunt serve' to work on the app locally :P), so I'm not sure if that's what I'm missing or what. If there's any other info needed, just let me know and I can add it.

Thanks for any help!

Please consider using HTML <base> element to specify the base URL for all relative URLs contained within a document.

In this case, you can specify a base URL in index.html like below:

<head>
    <base href="/app/">
</head>

Also, if you don't want type /app/index.html in the URL to visit your site, you cloud add this to Default documents under Application settings menu in the Azure portal .

在此处输入图片说明

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