seandaniels
01/16/2023, 7:31 PMserver.json
file when starting the server? Looking at the repo, it seems to me like server.json
is hard-coded in run.sh
(line 90). My repo has two separate server.json files to support launching in two different modes (front end vs. admin). I have two separate DockerFiles to create containers in the different modes. I've tried various things in the DockerFiles but none of them seem to work:
COPY server-frontend.json /app/server.json
RUN box config set server.singleServerMode=false
RUN box server set serverConfigFile=server-frontend.json
ENV BOX_SERVER_SERVERCONFIGFILE="server-frontend.json"
Ryan Albrecht
01/17/2023, 3:37 PMCharles Robertson
01/17/2023, 4:40 PMACF Version11,0,19,314546
I want to change the JVM settings, but I cannot find where they are?
https://www.cfguide.io/coldfusion-administrator/server-settings-java-jvm/
Does anyone know whether it is possible to access these settings, using CommandBox? ThanksGrant Copley
01/17/2023, 7:34 PMbockensm
01/17/2023, 7:39 PMhttps://example.com/images/logo.jpg▾
localurl="true"
on the cfdocument tag, generation works very quickly as expected. I'm wondering where I would start debugging why having a remote URL that points back to the CommandBox server would cause it to time out.Scott Bennett
01/17/2023, 7:51 PMGrant Copley
01/20/2023, 9:41 PMDean
01/20/2023, 11:49 PM"ERROR","FILEAPPENDER","01/21/2023","10:47:03","commandbox.system.Shell","java.util.zip.DataFormatException: invalid bit length repeat lucee.runtime.exp.NativeException: java.util.zip.DataFormatException: invalid bit length repeat at net.lingala.zip4j.io.inputstream.InflaterInputStream.read(InflaterInputStream.java:53)
I will put a longer stack dump in the threadryan
01/23/2023, 1:45 PMc:\users\ryan\
directory, which seems to suggest this.
Is there any way to configure commandbox to utilize .env files tied to its own running web instance and not available/shared to all other running web instances?
https://www.forgebox.io/view/commandbox-dotenvGrant Copley
01/23/2023, 5:50 PMGrant Copley
01/24/2023, 4:31 PMrodyon
01/24/2023, 6:48 PMRyan Albrecht
01/25/2023, 7:35 PM//code 1
param arguments.value = invoke( this, "get" & arguments.key );
//code 2
if(!isDefined('arguments.value')){
arguments.value = invoke( this, "get" & arguments.key );
}
David Rogers
01/26/2023, 7:49 PMcomponent extends="quick.models.BaseEntity" table="RMME_C" accessors=true {
// basically an empty thing
property name="id_c" type="numeric" sqltype="int";
variables._key = "id_c";
}
a = getInstance("RMME_C").appendVirtualAttribute(name="foo", excludeFromMemento=false).setFoo(42).getMemento()
b = getInstance("RMME_C").getMemento()
writedump(a.foo) // 42 (ok good deal, as expected)
writedump(b.foo) // "" (expectation is this should crash because foo is not a thing here)
Charles Robertson
01/27/2023, 11:24 AMserver.json
Why?
I have both Lucee & ACF powering the same local repo, using IIS, BonCode and CommandBox.
If I open both versions in the same browser, I get a SESSION issue. I have resolved this issue, by opening the ACF version in Chrome and the Lucee version in Firefox.
Currently, it is a hell of an effort, having to copy and paste the URL from Chrome into Firefox. I wondered, if there is a way I can alleviate this massive stress.😉
But, seriously, I am kind of interested to know if we have this option? 🙏
Update:
Theoretically, I could create a Windows shortcut and then do:
"openBrowserURL":"C:\\somepathTo\\shortcut-website-open-in-firefox - shortcut",
The question is, will this property accept a system path? I will tell you soon. Watch this space? 😊rodyon
01/27/2023, 6:04 PMNick Kurucz
01/27/2023, 10:37 PMrichard.herbert
01/30/2023, 2:00 PMcommandbox-service-manager@ortus
module on macOS and get this...
❯ install commandbox-service-manager@ortus --verbose --force
√ | Installing package [forgebox:commandbox-service-manager@ortus]
|---------------------------------------------------------------------------
| Verifying package 'commandbox-service-manager@ortus' in forgebox, please wait...
| Installing version [1.4.2].
| Verified entry in forgebox: 'commandbox-service-manager@ortus'
| Package found in local artifacts!
| Decompressing...
| /Volumes/sites/_commandbox/cfml/box.json updated with dependency.
| Installing to: /Volumes/sites/_commandbox/cfml/modules/commandbox-service-manager@ortus
| -> 39 File(s) Installed
| -> 0 File(s) ignored
| Eureka, 'commandbox-service-manager@ortus' has been installed!
| Activating your new module for instant use...
|---------------------------------------------------------------------------
bash: syntax error near unexpected token `('
I now get that bash error for all commands in the Box terminal.danmurphy
01/30/2023, 6:39 PMcontroller.getColdBoxSettings();
it reports all of the settings as default (with the customErrorTemplate
being empty. It even says the environment is production, but still doesn’t match my settings as they are set in /config/Coldbox.cfc
in production or local (or anywhere). But dumping controller.getConfigSettings()
shows my settings as they are set in my local method.
Because of this, any error just gets reported with hardly any info because of there not being a customErrorTemplate
defined (even though it is in my actual settings). Also, for example, I have to reinit after every change locally because the default settings have handlerCaching set to true.
Has anyone seen this before? Not sure what to troubleshoot here.bhartsfield
01/31/2023, 3:22 PMjclausen
01/31/2023, 5:01 PMLisa
01/31/2023, 7:46 PMRun box testbox run "<http://127.0.0.1:80/tests/runner.cfm>"
Executing tests <http://127.0.0.1:80/tests/runner.cfm?&directory=tests.specs&recurse=true&reporter=json&verbose=true> please wait...
ERROR (5.7.0+00653)
Error executing tests:500 Internal Server ErrorGET <http://127.0.0.1:80/tests/runner.cfm?&directory=tests.specs&recurse=true&reporter=json&verbose=trueLucee> 5.3.8.189 Error (BundleRunnerMajorException)
Message Error executing bundle - tests.specs.Services.UserServiceTest message: Parent directory for [/app/testbox/system/stubs/D2AEDE288527BB61F793378611067533.cfm] doesn't exist
I'm brand new to testbox so may be missing some dependency or config.
We can run the tests through the browser with: <http://localhost/tests/runner.cfm>
Nick Kurucz
01/31/2023, 10:01 PMDavid Rogers
02/01/2023, 5:32 PMpostInsert
. My initial attempts seem to indicate that values set on this
as well as virtualAttributes are zero'd out (the entity instance on which the values are set, is not the entity instance on which the postInsert is called). Is there a mechanism for this? Am I mistaken in understanding the above behavior?David Rogers
02/01/2023, 9:11 PMrequired:true
check failsJason Wilson
02/02/2023, 4:15 PMCharles Robertson
02/03/2023, 11:23 AMYou must use CommandBox to use this project, but the servers themselves don't need to have been started by CommandBox.Does this mean, I can use the CommandBox CLI to add settings into a Lucee standalone server? We would like to use this paradigm on our production Lucee server? Would we do something like this:
cfconfig import from=myConfig.json to=/path/to/server/install/home toFormat=luceeServer@5.3.10.97
On Windows, do you know what the Lucee server home system path would be?
Maybe:
C:\lucee\tomcat\lucee-server\context\lucee-server.xml