BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

Improve cfpm command to better detect correct server

Description

If both a Lucee server and an Adobe CF server have been stared in the same web root and "cfpm" is run, look at all the possible servers and find only ones with "adobe" engine and a version higher or equal to 2021.

Furthermore, if the cfpm command is being run as part of a server start package script, see if it's possible to detect via env vars which server is being started and favor that server above all.

And finally, allow the user to set a CFPM_SERVER env var to override the name of the server to use,

Here is the order of precedence:

  1. Single server mode (uses only server)

  2. if interceptData.SERVERINFO.name env var exists, use that

  3. if CFPM_SERVER env var exists, use that

  4. Loop over all servers using pwd as webroot and find first adobe 2021+ server

Also, make this command no longer throw an error if there is not an adobe 2021+ server found. This will make it easier to use this command in scripts that need to work across more than one server.

Activity

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

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created November 16, 2021 at 4:56 PM
Updated December 23, 2021 at 6:44 PM
Resolved December 23, 2021 at 6:44 PM

Flag notifications