Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: herd.yml configuration creates root project under folder name, not name in Yaml file #1095

Open
csoutham opened this issue Oct 16, 2024 · 0 comments
Labels

Comments

@csoutham
Copy link

csoutham commented Oct 16, 2024

Platform

macOS

Operating system version

15.1 Beta (24B5077a)

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.11.1

PHP Version

No response

Bug description

I have switched from Valet to Herd, without migrating - complete fresh installation.

When creating a new project site within Herd using the herd.yml configuration file, Herd also creates a site for the project folder, which is problematic for any work that has a folder with the same name.

For instance if I was to build multiple Todo apps for clients, and have a client folder with each app inside a folder called Todos - I can only create one site within Herd.

An example configuration from a site within a folder called Todos:

name: client1-todos
php: '8.3'
secured: true
aliases:
  - api.client1-todos
  - frontend.client1-todos
services:
  mysql:
    version: 8.0.36
    port: '${DB_PORT}'
  redis:
    version: 7.0.0
    port: '${REDIS_PORT}'
integrations:
  forge: { }

Herd will run when calling herd init and create three sites

  • api.client1-todos.test
  • frontend.client1-todos.test
  • and Todos.test

This is quite frustrating and unworkable, as if I try and add client2 with a folder called Todos, then Herd will fail.

Is there anyway to not create the unnecessary root folder with a flag in the herd.yml?

Steps to reproduce

No response

Relevant log output

No response

@issuelabeler issuelabeler bot added the macOS label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant