Jim Priest
12/02/2022, 5:40 PMgarciadev
12/02/2022, 6:06 PMjas
12/02/2022, 6:32 PMDaniel Mejia
12/03/2022, 1:27 AMmithlond
12/06/2022, 8:50 PMbdw429s
12/07/2022, 6:59 PMgpickin
12/08/2022, 4:39 PMwebsolete
12/08/2022, 6:28 PMserver.system.environment
just those environment variables that were set via a .env file as opposed to those 'baked in' to the engine's server scope?gpickin
12/08/2022, 8:50 PMdanlance
12/09/2022, 1:28 PMOne of the most exciting features in 5.3.10, which should make should make everyone’s life easier when deploying Lucee servers, is improved, still experimental, native support for.CFconfig
• Startup Listeners, server.cfc and web.cfc :: Lucee Documentation 13
• configImport() :: Lucee Documentation 13
• add support for .cfconfig.json importing on startup 9
There are, however, a few known issues with, datasource imports and s3 mappings don’t quite work yetconfigImport
• LDEV-4255 3 - configImport isn’t importing custom args for datasources
• LDEV-4289 - configImport isn’t importing s3 mappingsAm I correct in thinking that this (at least once remaining issues are resolved) should allow for use of finalised CB docker images, whilst maintaining the ability to set certain Lucee configuration variables dynamically from environment variables?
Ookma-Kyi
12/11/2022, 8:29 PMcomponent {
function up( schema, query ){
schema.create( "characters", function(table) {
table.increments( "id" );
table.integer( "userid" ).references( "id" ).onTable( "users" ).onDelete( "cascade" );
table.boolean( "deleted" ).default( 0 );
table.boolean( "active" ).default( 0 );
table.string( "name", 25 ).unique();
table.integer( "xp" ).default( 0 );
table.integer( "belt" ).references( "id" ).onTable( "belts" ).onDelete( "cascade" );
table.integer( "wins" ).default( 0 );
table.integer( "loses" ).default( 0 );
table.integer( "draws" ).default( 0 );
} );
}
function down( schema, query ){
schema.drop( "characters" );
}
}
Model:
component extends="quick.models.BaseEntity" accessors="true" {
property name="id" type="number";
property name="userid" type="number";
property name="deleted" type="boolean";
property name="active" type="boolean";
property name="name" type="string";
property name="xp" type="number";
property name="belt" type="number";
property name="wins" type="number";
property name="loses" type="number";
property name="draws" type="number";
public User function retrieveCharacterByName(required string name)
{
return newEntity().where("name", arguments.name).firstOrFail();
}
public User function retrieveCharacterById(required numeric id)
{
return newEntity().findOrFail(arguments.id);
}
public struct function getMemento()
{
return {"name"=variables.getName()};
}
}
Is this correct?Aaron DeRenard
12/12/2022, 3:51 PMteaman
12/13/2022, 5:15 PMteaman
12/13/2022, 5:16 PMCharles Robertson
12/14/2022, 2:46 PMCommandBox:commandbox-jre-win64-5.6.1> cfconfig export from=C:\domains\<http://cg-acf11-0-19_314546.com|cg-acf11-0-19_314546.com>\wwwroot to=api-learningassistant-local-acf11019314546_config.json
ERROR (5.6.1+00618)
Command "cfconfig export from=C:\domains\<http://cg-acf11-0-19_314546.com|cg-acf11-0-19_314546.com>\wwwroot to=api-learningassistant-local-acf11019314546_config.json" cannot be resolved.
Charles Robertson
12/14/2022, 2:49 PMcfconfig
was part of CommandBox?Charles Robertson
12/14/2022, 2:52 PMWindows Server 2016
Commandbox: with JRE win64-5.6.1
gpickin
12/15/2022, 4:02 PMfmdano
12/15/2022, 4:34 PMteaman
12/16/2022, 5:28 PMfaxi05
12/19/2022, 3:34 PMfunction preHandler( event, action, eventArguments ){
var authDetails = event.getHTTPBasicCredentials();
if( !securityService.authenticate( authDetails.username, authDetails.password ) ) {
event.renderData( type="JSON", data={ message = 'Please check your credentials' }, statusCode=401, statusMessage="You're not authorized to do that");
}
}
Today I discovered that in CB 6.6, the renderData() call seems never to run, but the unauthenticated user is allowed to proceed... using event.noRender() instead works, but I would like to know if this is a bug or a feature? :)mithlond
12/19/2022, 8:18 PMmithlond
12/19/2022, 8:45 PMmithlond
12/19/2022, 8:46 PMCavan Vannice
12/19/2022, 8:48 PMgpickin
12/20/2022, 6:00 PM