Server.cfc:onBuild

Description

Add support for the function “onBuild“ to Server.cfc, this function only get triggered as part of the prewarm process triggered for example by docker build

relates to

Activity

Zac Spitzer 15 March 2025 at 14:09

Pothys - MitrahSoft 10 February 2025 at 10:53

Thank you, Michael Offner. I have tested this on my local, and it works fine as expected.

Michael Offner 7 February 2025 at 14:56

works for me, i just double checked, make sure you have the Server.cfc in the right place
/lucee-server/context/context/Server.cfc

also add a “onServerStart“ and set LUCEE_ENABLE_WARMUP=false for testing, i you do not see line 7, your Server.cfc is in the wrong place.

Pothys - MitrahSoft 15 November 2024 at 15:13
Edited

, I have investigated this ticket with Lucee version 6.2.0.164-SNAPSHOT in a Docker environment. When I try to run the server after setting LUCEE_ENABLE_WARMUP=true, the onBuild function is not triggered.

Fixed

Details

Assignee

Reporter

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Priority

Created 20 June 2024 at 07:49
Updated 15 March 2025 at 14:26
Resolved 10 February 2025 at 10:54