-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 when I deploy #351
Comments
Based on the code above, it looks like you are committing your project's You would either need to change the branch you're deploying to or configure the Bam92/abelmbula library to use your |
From my understanding of the Anyway, I tried to configure Github pages to use my |
You are technically correct (the best kind!) but your code is overriding that behavior. The default is indeed to create the const ghPages = require("gh-pages")
ghPages.publish(
'public', // the first argument is the local folder to publish
{
branch: 'master', // <== this is explicitly telling the library to publish the folder stated above to this branch
repo: 'https://github.com/Bam92/abelmbula.git',
},
() => {
console.log('Deploy Completed!')
}
) I also see it loading your I would recommend modifying your script to display the error message in the callback as I think it'll reveal the missing piece here. Something like this should suffice: const ghPages = require("gh-pages")
ghPages.publish(
'public', // the first argument is the local folder to publish
{
branch: 'master', // <== this is explicitly telling the library to publish the folder stated above to this branch
repo: 'https://github.com/Bam92/abelmbula.git',
},
(err) => {
if(err) console.error(err)
else console.log('Deploy completed!')
}
) |
I created a pull request for the above suggestion and also fixed the target branch (it was different in the script vs. this issue) |
I've fixed my problem, so I've to close this issue. For those who might need the solution, know that I worked with @kyleratti (thank you so much :)). In short, do create your |
I am wondering if there is a bug in the package. Since I deployed my site I am still getting
Not found error
.I am using ver
2.2.0
. This is my script:When I run my custom command to deploy (
npm run deploy:gh-pages
) I get the messageDeploy Completed!
, but when I go online I get404
error.What's wrong?
The text was updated successfully, but these errors were encountered: