This is the repo for https://nwidolfest.com/. It runs off of Gatsby with a Material UI theme and is currently deployed on GitHub Pages.
- Have a working node/npm dev environment with node <= 16.15.0 (this is due to a bug in PostCSS). We suggest using nvm and
nvm install 16.15.0
. npm install -g [email protected]
npm install
npm run develop
The site uses gh-pages to deploy. Assuming you have collaborator access to this repo, there are two methods of deployment:
- Locally, run
npm run deploy
. - From GitHub, go to "Actions" and manually invoke Gatsby Publish.
If you're looking to test the CMS locally, it's not too hard. You'll need to run the site in production mode, which will also run on a different port. You'll have to do a full build, which is very slow, but only needs to be done once.
IMPORTANT: Running the CMS locally points you at the real github repo, so publishing will deploy changes to the real site. We don't currently have a good way to fake this out.
How:
- Run
npm run start-compiled
to start the server - Go to https://localhost/admin/
- As you make changes, run
npm run build-admin
in another tab to copy admin files over - If you're making a bunch of changes, run
npm run watch-static-admin
- that will auto-copy things over.
Try stoppping the server, running npx gatsy clean
and starting back up.