Public website for Common Knowledge Co-operative.
The deployed website is a static site generated by Gatsby, styled with Rebass and styled-components for explicit CSS, and written in React + TypeScript. Relies on Node for development, preferably installed via Node Version Manager (nvm
).
- Initial install:
yarn
to dl/build package dependencies (prefernode@^11
) - Dev deploy:
yarn develop
to deploy locally with hot-reload on edit, exposed to http://localhost:8000/. - Prod deploy: Commit to
master
branch and push to GitHub to auto-deploy a new production version to https://commonknowledge.coop
Delete node_modules/sharp
, then run yarn add sharp
and it should fix itself.
- Production deployment from GitHub is handled by netlify.com/sites/commonknowledge. It will run
gatsby build
remotely to generate the production-ready static files. Login to the control panel with [email protected] (password in the shared LastPass folder) - DNS config is version controlled at git.coop/dns/commonknowledge/zonefiles