Skip to content

Conversation

@webjunkie
Copy link
Contributor

@webjunkie webjunkie commented Nov 24, 2025

Summary

Reorganize developer onboarding guide to emphasize modern, recommended setup:

  • Move 'Developing locally' to Option 1 (primary path)
  • Promote Flox as the default setup method with clear, concise instructions
  • Collapse detailed manual setup in expandable <details> section (all content preserved)
  • Move Codespaces to Option 2
  • Update clone size recommendations: ~3 GB down from ~few hundred MB with git clone --filter=blob:none

Changes

Flox (Recommended):

  • Clear, numbered steps to get PostHog running with Flox
  • Emphasizes simplicity and consistency across team
  • All dependencies managed automatically

Manual setup (Optional):

  • All 290 lines of detailed steps preserved in collapsible section
  • All troubleshooting gotchas and tips included (xmlsec, psycopg2, OpenSSL, etc.)
  • Available for developers who prefer manual control

Codespaces:

  • Moved to Option 2 as alternative for those who can't/don't want local setup

Benefit

Developers see the modern, recommended path first while manual setup remains accessible. Reduces doc bloat without losing critical information.

@vercel
Copy link

vercel bot commented Nov 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
posthog Ready Ready Preview Nov 25, 2025 8:26am

Recommend using blobless clone for initial repository setup:
- Reduces clone size from 3.66 GiB to ~217 MiB (94% reduction)
- Makes initial clone 15-17x faster
- Still provides full git history for log/diff commands
- Only downloads current file contents, not historical versions

Developers still get complete git functionality while saving bandwidth
and time on the initial clone.
@webjunkie webjunkie force-pushed the docs/git-filter-blob-none branch from cd2e6c7 to f6b3a8b Compare November 24, 2025 16:36
@webjunkie webjunkie changed the title docs: recommend blobless clone for faster setup docs: improve developer onboarding with Flox-first approach Nov 24, 2025
@webjunkie webjunkie marked this pull request as ready for review November 24, 2025 16:54
Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd even be tempted to warn a manual setup will break sometimes as we lean into flox but otherwise 🚢

@webjunkie webjunkie mentioned this pull request Nov 24, 2025
11 tasks
Restructure to emphasize recommended setup approach:

- Move 'Developing locally' to Option 1 (primary path)
- Promote Flox as default setup method with concise instructions
- Collapse detailed manual setup steps in <details> section
- Move Codespaces to Option 2
- Update clone size figures: ~3 GB, few hundred MB (from 3.66 GiB, 217 MiB)

All existing setup details and troubleshooting tips preserved in collapsible section.
Developers see the modern, recommended path first while manual setup remains available.
You can now change PostHog in any way you want. See [Project structure](/handbook/engineering/project-structure) for an intro to the repository's contents. To commit changes, create a new branch based on `master` for your intended change, and develop away.
### Manual setup
### Manual setup (advanced)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in favor of not having this here at all :). If you wanna do it manually, then you should own it rather than be able to point to the handbook and say "but the handbook told me I could use it!"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually also in favor of that... one less path to worry about. I was hesitant though because of these tips and tricks for any troubles.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay replaced it with a Common gotchas section because I found some things valuable and not sure who runs into them (even with Flox).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pauldambra FYI because you approved it and now I've changed more 🙈

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, i think a tell posthog anything or all hands "hey, use flox it'll help us scale" is on the cards since some folk still aren't and it is gonna make automation harder over time (or rather - one setup makes automation easier)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but 🚢🚢🚢🚢🚢🚢🚢🚢

- Reorganize guide: Flox setup as Option 1, Codespaces as Option 2
- Promote Flox as recommended/default development method
- Collapse detailed manual setup in <details> section
- Fix git clone filter=blob:none explanation and size figures
- Simplify Flox description (remove incorrect npm analogy)
- Remove unnecessary rustup/ruff from Flox install
- Fix HTML details tag formatting for proper rendering
- Remove entire manual setup section (dependencies, environment setup)
- Replace with concise 'Common gotchas' section (14 items, common to obscure)
- All gotchas apply regardless of Flox or manual setup method
- Includes: resource limits, port conflicts, build errors, migrations, ARM issues
- Sorted from most common (Docker/memory) to most obscure (pyproject.toml warnings)
- Explain that external services run in Docker
- PostHog apps (Django, frontend, plugin-server, Celery) run on host via hogli start
- Clarify mprocs is a terminal UI for managing process logs
- Emphasizes fast iteration while keeping infrastructure isolated
@webjunkie webjunkie merged commit 42cbaa0 into master Nov 25, 2025
12 checks passed
@webjunkie webjunkie deleted the docs/git-filter-blob-none branch November 25, 2025 11:00
oliverb123 added a commit that referenced this pull request Nov 27, 2025
oliverb123 added a commit that referenced this pull request Nov 27, 2025
…#13888)

* Revert "docs: improve developer onboarding with Flox-first approach (#13829)"

This reverts commit 42cbaa0.

* Update pnpm installation instructions to version 10

* update to really, really recommend flox

* words

* updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants