cytopia / cytopia/devilbox

[Feature]: skipping projects

Open
#1,009 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
PHP
Stars
4.5k
Forks
652
PR merge metrics
No merged PRs in 30d

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.