Hiral
Hiral

Reputation: 129

Not able to publish app on gh-pages with angular 7

enter image description hereI am trying to publish my app on gh-pages which is built on angular 7 followed couple of articles but didn't solve my issues I tried steps below:

  1. npm i -g angular-cli-ghpages
  2. ng build --prod --base-href “https://username.github.io/repository_name/
  3. ngh

looked into github issue and followed steps but didn't help either

https://github.com/angular-schule/angular-cli-ghpages/issues/37

ngh --dir dist/[PROJECTNAME] I typed above command it is running without any console error but my gh-pages shows only readme file at hosted url

Upvotes: 0

Views: 592

Answers (1)

Pardeep Jain
Pardeep Jain

Reputation: 86790

You can publish your angular application just pushing bundle (Dist folder with name of docs) on github.

and after that point build in the github repo settings to docs folder.

For more details refer -

Upvotes: 1

Related Questions