2.4.4
https://jedrekdomanski.github.io/bikeramp-front/
Follow the article https://cli.vuejs.org/guide/deployment.html#github-pages
Deployment is successful
GH Pages does not see dist/ folder, application does not work.
You should probably deploy your bundled files in the gh-pages branch. See GitHub Pages' documentation.
That's waht I did. I have gh-pages branch with dist/ folder in it and I am building the app from gh-pages but it does not work.
https://github.com/jedrekdomanski/bikeramp-front/tree/gh-pages
module.exports = {
baseUrl: process.env.NODE_ENV === 'production'
? '/bikeramp-front/'
: '/'
}
I am getting 404 GET https://jedrekdomanski.github.io/dist/build.js
My project is at https://jedrekdomanski.github.io/bikeramp
https://github.com/jedrekdomanski/bikeramp-front/blob/master/webpack.config.js#L8
publicPath in your webpack config is wrong, it should be /bikeramp-front/ in your case.
I've changed that and it still doesn't work.
https://github.com/jedrekdomanski/bikeramp-front/blob/gh-pages/webpack.config.js#L8
@jedrekdomanski You are directly modify gh-pages branch instead of building App and running deploy.sh in master branch. Please read document about GitHub Pages by yourself.
And also, you are not using vue-cli at all, and it is your own usage problem which is not related to Vue core/cli at all.
I've already tried the document-way, it did not work but I will try one one time.
I've tried again and it still doesn't work.
https://jedrekdomanski.github.io/bikeramp-front/
https://github.com/jedrekdomanski/bikeramp-front/tree/gh-pages
So where should I raise this issue? This is related to the documentation which clearly is wrong.
@jedrekdomanski See https://github.com/jedrekdomanski/bikeramp-front/pull/1, there is nothing wrong in document because it's your own usage problem about GitHub Pages, not Vue related at all.
Thank you. It worked.
How did you know that? I did not read that on GitHub Pages docs.
Most helpful comment
Thank you. It worked.
How did you know that? I did not read that on GitHub Pages docs.