Skip to content

refactor: check for docroot/index.* on start, fixes #7157 - #7228

Merged
rfay merged 3 commits into
mainfrom
20250424_rfay_check_index.php
Apr 25, 2025
Merged

rfay merged 3 commits into
mainfrom
20250424_rfay_check_index.php

Conversation

@rfay

@rfay rfay commented Apr 24, 2025

Copy link
Copy Markdown
Member

The Issue

On start, check to see if docroot and index.* exist - or warn. Don't do it on generic webserver_type.

Manual Testing Instructions

  • Rename or remove docroot, start
  • misconfigure docroot, start
  • Check with generic webserver_type, start

Automated Testing Overview

  • nothing added

@github-actions

github-actions Bot commented Apr 24, 2025 •

Copy link
Copy Markdown

@rfay
rfay marked this pull request as ready for review April 24, 2025 18:22
@rfay
rfay requested a review from a team as a code owner April 24, 2025 18:22
@rfay
rfay requested a review from stasadev April 24, 2025 18:22

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

I wish it was more noticeable (but it probably doesn't work everywhere):

echo -e "\033[5mWARNING\033[0m"

warning

@rfay

rfay commented Apr 24, 2025

Copy link
Copy Markdown
Member Author
image

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

I'm used to seeing orange in DDEV, so it’s refreshing to have something different.

@rfay

rfay commented Apr 25, 2025

Copy link
Copy Markdown
Member Author

We may find that this is confusing to people doing a ddev composer create-project or a ddev start before the create-project. If so maybe we can figure out what to do then... Perhaps the warning gives enough context for people to understand, but most people don't read the whole message.

I think the FAQ is probably still valid and useful, but perhaps less people will need it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants