I have an Angular site I'm developing in Visual Studio Code with GitHub for the source control. Not sure if it's relevant to the issue, but the site was started using the Angular CLI to create the file structure, etc.
Then, I created a new Azure App Service and connected to the GitHub Repo using the Deployment Options blade on the Azure Portal.
Unfortunately, the site does not start because the entire repo has been copied up to the App Service, and not just the contents of /src or /dist. Effectively, the App Service has no idea where main.ts is, and, therefore, it's more of file storage than it is a working web site.
I do not see any configuration options in the Azure Portal to tell the site to serve from the /src path, so how can I get this site functional? Is there a configuration I need to make on the project-level in my Angular code? It doesn't seem so since all files are being pushed up - /src or /dist just don't look like they're being considered as the starting point for serving the site.
Update I've found the setting in the Azure Portal when I can point to either the /src or /dist folder, unfortunately, the /dist folder is still not being pushed up to GitHub, and, therefore, not making it to Azure. Of course, the ideal would be to just publish the /dist folder up on Azure to save space as I don't need a complete copy of the repo up there. And, even though I've changed the path to /src, it does not actually run, because /src contains the .ts files whereas the /dist folder contains everything boiled down to .js as expected.
Update #2 After poking around SO, and other resources, I decided to give Fredrik's guide below a shot. Originally, I didn't want to have another cog in the machine (VSTS) but it doesn't really seem to be any other way to get just the deployment /dist files pushed up to Azure in a Continuous Integration manner.
I can't thank Fredrik enough for his help!