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:
yarnto dl/build package dependencies (prefernode@^11) - Dev deploy:
yarn developto deploy locally with hot-reload on edit, exposed to http://localhost:8000/. - Prod deploy: Commit to
masterbranch 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 buildremotely to generate the production-ready static files. Login to the control panel with hello@commonknowledge.coop (password in the shared LastPass folder) - DNS config is version controlled at git.coop/dns/commonknowledge/zonefiles