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

[Feature]: skipping projects #1009

Open
martin-rueegg opened this issue Nov 4, 2023 · 1 comment
Open

[Feature]: skipping projects #1009

martin-rueegg opened this issue Nov 4, 2023 · 1 comment
Labels

Comments

@martin-rueegg
Copy link

What is your idea or feature suggestion?

Currently, every folder in $HOST_PATH_HTTPD_DATADIR is considered a virtual host. However, there are situations where it might be helpful to exclude certain directories (e.g because you do not want to separate devilbox-projects from non-devilbox projects that you all have in the same projects folder, so all your IDEs are using the same base folder. Or some IDE or other software might create some .dot folder in that directory).

I suggest to

  • by default, exclude all directories starting with a dot (i.e., .directory) from createing a vhost config in /etc/httpd/vhost.d/
  • it seems not useful to have a host-name starting with a dot anyway. But if there is a use case for this, then maybe introduce an .env variable to force-include all or certain (regex?) dot-directores
  • allow to exclude certain directories: maybe by
    • introducing a .env variable to specify an exclude pattern (regex), or
    • if the .devilbox ($HTTPD_TEMPLATE_DIR) is a symlink to /dev/null (or something that is also Windows compatible)

Benefits

This would help to de-clutter the /vhosts.php page so that real errors are not overlooked.

Where can we find information about this?

No response

Are you willing to provide a PR to address this?

Yes

@martin-rueegg
Copy link
Author

Re PR: happy to work on this if anyone could point me in the direction of the source. Is it in https://github.com/devilbox/vhost-gen anyway?

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