Gert Franz, Rasia Switzerland
Assembler > Basic > Clipper > Pascal > Delphi > Java > CFML > Lucee
ONE DOES NOT SIMPLY
DOCUMENT EVERYTHING HE HAS CODED
Tips and tricks around the administration
<cfLuceeConfiguration
default-hspw="23d82bcab39f7cbfc41e2e9f5d539482ae76d86646e58e113166f0f370da06b0"
hspw="23d82bcab39f7cbfc41e2e9f5d539482ae76d86646e58e113166f0f370da06b0"
salt="F7323339-8891-474F-B59F0D00CCB8BAB3" version="4.5">
<cfabort/>
...
<cfLuceeConfiguration>
<file-system
deploy-directory="zip://d:\Gert\Lucee\classes.zip!cfclasses"
fld-directory="{lucee-web}/library/fld/"
temp-directory="{lucee-web}/temp/"
tld-directory="{lucee-web}/library/tld/">
</file-system>
<file-system
deploy-directory="ram://cfclasses"
fld-directory="{lucee-web}/library/fld/"
temp-directory="{lucee-web}/temp/"
tld-directory="{lucee-web}/library/tld/">
</file-system>
<!--
Path placeholders:
{lucee-web}: path to the lucee web directory typical "{web-root}/WEB-INF/lucee"
{lucee-server}: path to the lucee server directory typical where the lucee.jar is located
{lucee-config}: same as {lucee-server} in server context and same as {lucee-web} in web context}
{temp-directory}: path to the temp directory of the current user of the system
{home-directory}: path to the home directory of the current user of the system
{web-root-directory}: path to the web root
{system-directory}: path to the system directory
{web-context-hash}: hash of the web context
-->
<constants>
<constant name="log-file-dir" value="/storage/logfiles/myWeb" />
</constants>
/lucee-server/context/context/admin
Lots of unknown or hidden stuff regarding coding with Lucee
<cfscript>
myArr = "1,2,3,4,5".listToArray();
myArr.append(6).append(7).append(8).append(9).append(10);
myArr.each( function(iValue) {
sleep(1000);
echo(iValue & "<br>");
flush;
}, true, 2);
</cfscript>
Functions or tags few people know or use
<cftry>
<cffile action= "write" file="D:\test\myFile.txt">
Some content for the file.
</cffile>
<cfcatch>
<cfif !directoryExists("D:\test")>
<cfdirectory action="create" directory="D:\test">
<cfretry>
</cfif>
</cfcatch>
</cftry>
Other gems hidden in Lucee
Things that make your life as a Lucee dev easier or faster