frosev wrote a comment+100 XP
4mos ago
Leveraging AI for Laravel Development: Ep 17, Worktrees, Agents, Peas, and Carrots
@DerekCaswell I think it would be the same as Jeffrey did where he created a bash script to run commands after setting up the worktree. For example if you used docker-compose, a hypothetical script could:
- copy the docker-compose files to the new worktree dir
- copy or generate an .env file
- run docker compose up -d
If you use sail, then you could use the sail specific commands. The bash script will depend on how you've setup your project using docker.