- Create github repository (public) - has to be public for gh-pages. Actually it's a website - why private?
- clone it to local machine
-
npm init quasar
I used Pina, Axios and no Vue-i18n (That's internalisation)
ESLint is prettier
I selected npm and said I will do it myself
-
cd sitename
-
npm install
-
quasar build
Note: /dist is already in .gitignore
Committed all that to github
I ran quasar build. Made sure /dist/spa existed but wasn't committed to github
From Repo root
-
git add -f dist/spa && git commit -m "Initial dist/spa subtree commit"
Note the -f option ignores the git ignore. Run without to see
To publish run
git subtree push --prefix dist/spa origin gh-pages
Create publish script "deploy_website.sh"
-
#!/bin/bash
-
-
git subtree push --prefix dist/spa origin gh-pages
In github options I selected delpoy from branch -> gh-pages
In configure domain I entered my domain. (Without www)
In DNS server set up A and AAAA records as per https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-g…
Add a single CNAME record for www pointing at rmetcalf9.github.io
Once this is done the github check should suceed
Sources
https://gist.github.com/joshuapekera/ef364073b01fb0e21d3f
https://quasar.dev/quasar-cli-vite/developing-spa/deploying/
Failed:
https://stackoverflow.com/questions/36782467/set-subdirectory-as-websit…