question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 7 project doesn't publish on Github - shows only ReadMe file (I've used GitHub Pages)

See original GitHub issue

When I publish Angular projects I usually always do the same thing… but for some reason it doesn’t work anymore. That’s exactly what I wrote: (The repo name is movies)

git init

git remote add origin <MyGitHubLink>

git add *

git commit -m 'first-commit'

git push -u origin master

ng build --prod --base-href https://itayperry.github.io/movies (from ghpages on github settings)

ngh --dir dist/movies

Then I get the message *** Successfully published! but all I see is the README file.

Please help me!!

The repository: https://github.com/itayperry/movies

The published page: https://itayperry.github.io/movies/

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fmalchercommented, Feb 5, 2019

The publishing with ngh works correctly, as the build artifacts can be seen here on the gh-pages branch: https://github.com/itayperry/movies/tree/gh-pages

Therefore, this is not related to this project at all, so I will close the issue for now. Please check the repo setting on GitHub to see which branch is being used for GitHub Pages. It must be gh-pages and not master. Hope this helps!

0reactions
Programazingcommented, Feb 5, 2019

@itayperry Good luck

Read more comments on GitHub >

github_iconTop Results From Across the Web

shows only ReadMe file (I've used GitHub Pages)
Angular 7 project doesn't publish on Github - shows only ReadMe file (I've used GitHub Pages) · Ask Question. Asked 3 years, 10...
Read more >
Why is only the readme file being published to github pages
In all of the tutorials I watched it shows that the index.md file is what was being used to make web pages. I...
Read more >
How to Fix "Only the Readme Is Appearing" When You've ...
Go to the settings page of the corresponding Github repo. Scroll down to the section titled GitHub Pages. · Go to your terminal...
Read more >
Publishing your website - Learn web development | MDN
This article doesn't attempt to document all the possible methods. ... Now let's examine how to easily publish your site via GitHub Pages....
Read more >
Create and Launch a Website from Start to Finish
GitHub Pages is a great way to get a simple, static website published online ... an HTML theme or template, not one of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found