Skip to content

Blog post working fine locally but not showing in github pages #1078

Closed Answered by razonyang
s4bot3ur asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm, it seems like there's something wrong with the deployment, as the build results are different between local and GitHub workflow.

Local GitHub Workflow

The page count does not match.

To diagnose, I'd suggest removing public and resources folder from repo, those folders are no need to commit to repo.

To do so,

git rm -r --cache public resources

And append those two folder into .gitignore file.

// .gitignore
node_modules
public/
resources/

And then commit changes and push it to remote.

git add .gitignore
git commit -m 'Remove the public folder and resources folder'
git push origin main

And check if the result of re-deploy later.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@razonyang
Comment options

Comment options

You must be logged in to vote
1 reply
@razonyang
Comment options

Answer selected by razonyang
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants