Support - Roadmap - Open an issue - Style guide
This is the repository for the PostHog website. It contains:
undefinedPre-installationundefined
Install Node and Yarn. (If you’re on a Mac with Apple Silicon and get an error with -86 in it, you may need to install Rosetta.)
npm install --global yarn
undefinedStart developingundefined
Clone the repo then navigate into your new site’s directory, install the site dependencies, and start it up.
cd posthog.com/
yarn
yarn start
undefinedTip: Seeing a discrepancy between local development and staging/production? Preview the production build locally by running
gatsby build && gatsby serve
undefinedOpen the source code and start editing!undefined
Your site is now running at http://localhost:8001!
undefinedNote: You’ll also see a second link:
http://localhost:8001/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
See full instructions on developing PostHog.com locally in our manual.
It is also possible to use Docker to run posthog.com locally with this command:
docker run -it --rm \
-w /app -v "$PWD":/app \
-p 8000-8001:8000-8001 \
-e INTERNAL_STATUS_PORT=8001 \
node:14-slim \
sh -c 'yarn && yarn start'
mastergatsby clean && yarn start or delete node_modules and .cache/docs/api?export POSTHOG_APP_API_KEY=keyyarn startYou’ll need to set environment variables for these. See (private) instructions for this.
We <3 contributions big and small. In priority order (although everything is appreciated) with the most helpful first: