sujeongy/wiki

404 error when deploying vuepress site on heroku

Closed this issue · 1 comments

  1. Not built

Are you building with the following command?

npm run docs: build
Because the build results are output to /docs/.vuepress/dist, please make sure that at least index.html is generated after the build.

PROJECT-ROOT
|
---/docs | --- /.vuepress
|
`---/dist
|
+ --- index.html
Also check that the content output to /docs/.vuepress/dist works properly.
For example, if you use the "Web Server for Chrome" Chrome extension, you can start a web server locally and check the operation easily.

  1. Not managed by Git

Are you sure that .gitignore doesn't manage /docs/.vuepress/dist with Git?

  1. Heroku build is not successful

Check your activity on the Heroku dashboard to make sure your build is successful.
Below is a screenshot of the activity of a simple VuePress application deployed in my environment.

Refs.