Skip to content

Instantly share code, notes, and snippets.

@mahendra0859
Created June 5, 2020 06:14
Show Gist options
  • Save mahendra0859/0489f83563ec53f9e30db0b78f62c8f2 to your computer and use it in GitHub Desktop.
Save mahendra0859/0489f83563ec53f9e30db0b78f62c8f2 to your computer and use it in GitHub Desktop.
Deploying Angular App

Methods to deploy angular app

Method 1: For static angular app

* make a small change in the angular.json file and change the outputpath value to “docs/”.

$ ng build --prod --base-href "<repo-name>"

$ git add . && git commit -m "commit" && git push

* In GitHub Pages for source select 'master branch /doc folder`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment