0đź‘Ť
Somewhat working solution
For anyone which would end up in the same situation, I believe most tutorial about Dokku / VueJS are out of date, and lead to stupid mistakes, or at the very least does not tackle the deployment correctly with the newer versions. After several hours I figured:
"postinstall": "npm run build",
I removed this from the package.json
and now it deploys without problem. I’m unsure if the success was due to removing the /dist
from .gitignore
in my project and building it locally, or if the something happens while it’s deployed, but it’s enough in my case.
0đź‘Ť
Better way imo.
Just create an empty file called exactly “.static” on the root folder of the project.
Then on the dokku server run:
dokku config:set yourappname NGINX_ROOT=dist BUILDPACK_URL=https://github.com/dokku/buildpack-nginx
The dist folder needs to be commited (remove it from .gitignore).
Then run “git push dokku master”.
- [Vuejs]-The script has an unsupported MIME type ('text/html') for firebase messaging service integration in vue js
- [Vuejs]-What is the difference between importing in <style> and <script> vuejs?