locked
App Service not showing github repo RRS feed

  • Question

  • I built the basic Angular starter app with its cli.  (I forced the angular to port 80, that did not help.)

    Runs locally fine. Did the ng build --prod   to get the runtime. Pushed that to github.

    Configured a new Azure App Service running Linux with latest version of node.

    Set the deployment to that github repo.

    Azure says it is running from my github, but it is clearly not, as it is running its standard "you haven't deployed anything yet" default site.

    See the image of what the azure site is showing

    https://photos.google.com/photo/AF1QipPsdhjDEy4spjbRH2TohmS5Xhf6GO7iWtEwY0eD

    and then  2nd image of the portal claiming that is is showing my github bits, which it clearly is not.  

    https://photos.google.com/photo/AF1QipMe_WJYrE2EvXersjnb2k-Cae8z98s6jyvsimnT

    Help.

    ( I used the fairly complex DevOps way of pushing a blob to a storage account and got it to work, but I really don't want my students to have to do all those steps.)



    • Edited by kurtfr Tuesday, October 29, 2019 11:17 PM
    Tuesday, October 29, 2019 11:13 PM

Answers

  • Solved, sort of ...

    when you build you AppService, it asks for OS.   If you pick windows, then when it asks for run time, if you pick node vxx, it flips the OS to Linux.  and then this fails to deploy from github, per the above.

    But, if you pick node vxx, and after it flips the OS to Linux, you click it back to windows  (which does not change the run time)  then deploy pointing to an Angular app in GitHub, it works.

    So there is a bug in the linux side, it fails to create the node/angular runtime correctly.

    but it works on a windows host.

    • Marked as answer by kurtfr Friday, November 1, 2019 7:33 PM
    Friday, November 1, 2019 7:33 PM

All replies

  • hi,

    I am unable to see the images.  there is a default hostingstart.html, did you try deleting it?

    Can you confirm in xxx.scm.azurewebsites.net/api/deployments you are seeing any deployments from the source or anything? Also What source does it show at xxx.scm.azurewebsites.net/api/scm/info 


    Rahber
    @Rahber

    Wednesday, October 30, 2019 8:06 AM
  • Wednesday, October 30, 2019 8:42 PM
  • Its possible you need to modify the startup file as described in this doc when using the source control method. I've seen this same issue where the default pages shows instead of my app with dotnet core on linux.

    https://docs.microsoft.com/en-us/azure/app-service/containers/app-service-linux-faq#built-in-images

    Friday, November 1, 2019 2:38 AM
  • Solved, sort of ...

    when you build you AppService, it asks for OS.   If you pick windows, then when it asks for run time, if you pick node vxx, it flips the OS to Linux.  and then this fails to deploy from github, per the above.

    But, if you pick node vxx, and after it flips the OS to Linux, you click it back to windows  (which does not change the run time)  then deploy pointing to an Angular app in GitHub, it works.

    So there is a bug in the linux side, it fails to create the node/angular runtime correctly.

    but it works on a windows host.

    • Marked as answer by kurtfr Friday, November 1, 2019 7:33 PM
    Friday, November 1, 2019 7:33 PM