Ngh Could Not Read From Remote Repository

How to deploy an Angular App

FrontEnd: Angular & GitHub

          npm install -k @athwart/cli        
          ng new my-app-demo        
          cd my-app-demo
ng serve --open

screenshot of terminal — mac
          npm install -one thousand angular-cli-ghpages        

          repeat "# my-app-demo" >> README.physician
git init
git add .
git commit -one thousand "first commit"
git remote add origin https://github.com/githubusername/reponame.git
git button -u origin main
          ng build --prod        
          ng build --prod --base-href //urlOfYourSubfolderDomain        

Deploy your app to Github pages

          ng build --prod --base-href https://yourGithub-username.github.io/reponame/        

Screenshot of terminal — mac

Turns out Angular 6 changed angular.json 'south "outputPath": "dist/" into "outputPath": "dist/[PROJECTNAME]" , which placed everything in the dist folder in a subfolder, which breaks ngh's functionality.

          ngh        
          ngh             --dir dist/[PROJECTNAME]        

If you enjoyed this article, yous might besides like " How to build a bidirectional app for Cyberspace of Things/Conversation with Python "

Cheers!!!

Become Best Software Deals Directly In Your Inbox

johnsonjusin1984.blogspot.com

Source: https://medium.com/coinmonks/how-to-deploy-an-angular-app-8db1af39f8c1

0 Response to "Ngh Could Not Read From Remote Repository"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel