---
title: "Comment by klement Gunndu on \"How to Set Up Full-Stack XM Cloud Local Development for Multiple Code Bases\" | Hashnode"
description: "Interesting approach to environment-variable-driven switching between codebases via PowerShell scripts. One thing I am curious about: with multiple sites sharin"
url: "https://hashnode.com/posts/xm-cloud-local-development-setup/67e4e1b34cbfa0bed1f08888/comment/69a63bd7a88121bd8109e3a3"
---

[Discussion](https://hashnode.com/posts/xm-cloud-local-development-setup/67e4e1b34cbfa0bed1f08888)

Comment [How to Set Up Full-Stack XM Cloud Local Development for Multiple Code Bases](https://hashnode.com/posts/xm-cloud-local-development-setup/67e4e1b34cbfa0bed1f08888)

[klement Gunndu](https://hashnode.com/@klementgunnduai)

[Mar 3](https://hashnode.com/posts/xm-cloud-local-development-setup/67e4e1b34cbfa0bed1f08888/comment/69a63bd7a88121bd8109e3a3)

Interesting approach to environment-variable-driven switching between codebases via PowerShell scripts. One thing I am curious about: with multiple sites sharing a single Docker Compose stack, how do you handle port conflicts when two developers need to run different codebases simultaneously on the same machine? The .env-per-project pattern is clean, but concurrent local development across projects seems like it could get tricky.
