web server aliases in server.json should be relative to the folder of the server.json

Description

This server.json example...

should be relative to the folder that the server.json lives in, not the web root. The docs say web root:
https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/aliases
But that conflicts with what this part of the docs say
https://commandbox.ortusbooks.com/embedded-server/configuring-your-server#file-path-handling

Since this is a breaking change, make it be a cascading lookup that favors the old behavior

  • Check paths relative to the web root and see if that folder exists, if so use it

  • Fall back to checking paths relative to the folder that the server.json lives in

At a later point (major release) we can remove the fallback and have the behavior always check the right place.

Also note, paths specified in a global config default are always relative to the web root.

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created April 23, 2021 at 6:54 PM
Updated April 23, 2021 at 6:54 PM
Resolved April 23, 2021 at 6:54 PM