beetboxvm / beetbox

Pre-provisioned L*MP stack
http://beetbox.rtfd.org
92 stars 19 forks source link

Find beet_root if index.php is not in project root. #377

Closed thom8 closed 7 years ago

thom8 commented 7 years ago

Proposed Changes

When an index.php file is not found in the root of the project this role will search through the 1st level subdirectories to attempt to find an index.php file. If found it will set beet_root to this directory.

This will only run if you haven't overridden the default beet_root. In the case where you have multiple subdirectories with an index.php and no index.php in the root the last one found will be used, however you still have the option to override beet_root to set the default path as above. If you need multiple virtual hosts you can still define them by overriding apache_vhosts.

Relates To

Notify

thom8 commented 7 years ago

Not too happy about adding a new role for this purpose, so this PR is more of a discussion point.

thom8 commented 7 years ago

Replaced role with pre tasks in the provisioning playbook.