http://coldfusion.com logo
Join Slack
Powered by
# box-products
  • s

    seandaniels

    01/16/2023, 7:31 PM
    In the official Docker image, is there a way to specify a different
    server.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 code
    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"
    p
    j
    b
    • 4
    • 49
  • r

    Ryan Albrecht

    01/17/2023, 3:37 PM
    I have a rather large scope function on a quick entity that does many subselects across relations. I find this to be quite slow so I manually join the tables. Im interested if anyone else has ran into this problem? (code in thread)
    • 1
    • 1
  • c

    Charles Robertson

    01/17/2023, 4:40 PM
    CommandBox:
    Copy code
    ACF 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? Thanks
    p
    b
    • 3
    • 10
  • g

    Grant Copley

    01/17/2023, 7:34 PM
    I’m hosting this month’s Ortus webinar for anyone that’s interested in HTML-over-the-wire technology using Livewire/CBWIRE. Would love it if you can attend! https://twitter.com/GrantCopley/status/1615430740535115777 https://cbwire.ortusbooks.com/
    👍 4
  • b

    bockensm

    01/17/2023, 7:39 PM
    I'm running CF2021 U5 on CommandBox and trying to generate a PDF document using cfdocument. I notice that if I try to include an image using the full URL (e.g.

    https://example.com/images/logo.jpg▾

    ), the PDF generation will time out, saying "The content of this document process takes more than 60000 milliseconds to process". However, when I switch to a relative URL (e.g. images/logo.jpg) and set
    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.
    b
    • 2
    • 15
  • s

    Scott Bennett

    01/17/2023, 7:51 PM
    Is there a outline/feature list somewhere that succinctly describes all of the features/functionality included by default in contentbox?
    b
    g
    l
    • 4
    • 12
  • g

    Grant Copley

    01/20/2023, 9:41 PM
    Thank you for everyone that attended the CBWIRE Live Coding Session webinar today. As promised, here’s the Git repo with the finished app, and I’ve added some little extras in there also. 🙂 http://bit.ly/3H3m1Zw For those that didn’t get to attend the webinar, we will have the recording available on cfcasts.com soon.
    ☝️ 1
    👍 1
    👍🏾 1
  • d

    Dean

    01/20/2023, 11:49 PM
    Trying to build a new server and install of FusionReactor seems to be failing with:
    Copy code
    "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 thread
    b
    • 2
    • 33
  • r

    ryan

    01/23/2023, 1:45 PM
    Did I read the commandbox-dotenv docs correctly that it is not possible to have different .env files for different websites utilizing one commandbox server? I did notice that my .env and .env.example files are created in
    c:\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-dotenv
    t
    r
    b
    • 4
    • 55
  • g

    Grant Copley

    01/23/2023, 5:50 PM
    I’ve posted a poll on what you all would like to see from a CBWIRE series on CFCasts.com. Appreciate any and all feedback! http://bit.ly/3H8q32O
    ✔️ 1
  • g

    Grant Copley

    01/24/2023, 4:31 PM
    My CBWIRE Live Coding Session for January’s webinar is now on CFCasts.com http://bit.ly/3WwbcVj
  • g

    gpickin

    01/24/2023, 5:30 PM
    @bdw429s and @gpickin ( gpickin ) going live for the CFML Podcast in 30 mins

    https://www.youtube.com/watch?v=SrS95HqW8HQ▾

  • g

    gpickin

    01/24/2023, 6:00 PM
    @bdw429s and @gpickin ( gpickin ) going live now for the CFML Podcast

    https://www.youtube.com/watch?v=SrS95HqW8HQ▾

  • r

    rodyon

    01/24/2023, 6:48 PM
    hi, is there any form-builder features in CB? Some abstractions of html elements that can be generated on-the-fly, and then use CB Validation with against generated code. I googled some 'Coldbox Enhanced HTML Helper' but it seem stale.
    p
    l
    • 3
    • 15
  • r

    Ryan Albrecht

    01/25/2023, 7:35 PM
    correct me if I am wrong but this code essentially does the same thing right?
    Copy code
    //code 1
    param arguments.value = invoke( this, "get" & arguments.key );
    
    //code 2
    if(!isDefined('arguments.value')){
    	arguments.value = invoke( this, "get" & arguments.key );
    }
    b
    a
    • 3
    • 15
  • d

    David Rogers

    01/26/2023, 7:49 PM
    Hi, I was wondering if anyone could confirm this behavior against Quick5 (^5.2.7) (maybe it's just our setup over here?)
    Copy code
    component 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)
    s
    • 2
    • 1
  • c

    Charles Robertson

    01/27/2023, 11:24 AM
    Hi Guys Is there any way I can open a specific browser from:
    Copy code
    server.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:
    Copy code
    "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? 😊
    j
    b
    • 3
    • 22
  • r

    rodyon

    01/27/2023, 6:04 PM
    hi all, how to add a module to Lucee inside box environment? Some part of code uses CFSPREADSHEET which works ok on classic Lucee, but not works under box-ed Lucee. I understand there's Google but today is Friday and this channel is always so helpful! 🙂
    c
    b
    +2
    • 5
    • 11
  • n

    Nick Kurucz

    01/27/2023, 10:37 PM
    Is anyone here familiar with the cbsecurity module or know where I should go to start a convo on that? I installed it and broke my site, and it's wanting me to setup a userServiceClass and then set it in ColdBox.cfc. I'm just looking for a basic example of doing this to use basic auth. Sorry for the rookie question.
    p
    d
    r
    • 4
    • 8
  • r

    richard.herbert

    01/30/2023, 2:00 PM
    I'm trying to install and use the
    commandbox-service-manager@ortus
    module on macOS and get this...
    Copy code
    ❯ 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.
    b
    • 2
    • 102
  • d

    danmurphy

    01/30/2023, 6:39 PM
    Using ColdBox 6.8.1. I can’t for the life of me get the bug report to be used. If I’m in a handler and just dump
    controller.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.
    b
    • 2
    • 13
  • b

    bhartsfield

    01/31/2023, 3:22 PM
    Sorry for the cross post but it doesn't seem the devops channel is very active and I know this one is full of some pretty well-rounded people (no, I'm not calling you fat 😛) TLDR; I am looking for a free (or very cheep) temporary solution for documenting server infrastructure. I say temporary because it is just to give us a reference while we lift-and-shift a few large datacenters into AWS. But, since there will be tons of servers, I'd like something a little more friendly than a huge bulleted list. Leaning towards excel just to be able to filter but I have to think there is a better suited, dedicated option out there in the never-ending pile of crapware that is IT documenting tools. https://cfml.slack.com/archives/CA3U3SWQL/p1675175886659069
  • j

    jclausen

    01/31/2023, 5:01 PM
    @bhartsfield We use SnipeIT. You can track software under the “Licenses” section and they can be associated to hardware.
    👍 1
  • g

    gpickin

    01/31/2023, 6:00 PM
    Going live now with @gpickin and @garciadev for the CFML News Podcast

    https://www.youtube.com/watch?v=_iPdrW9iVa4▾

  • l

    Lisa

    01/31/2023, 7:46 PM
    I'm integrating testbox into our CI using Github actions. I'm running into this error:
    Copy code
    Run 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>
    b
    • 2
    • 37
  • n

    Nick Kurucz

    01/31/2023, 10:01 PM
    Does anyone use CBWire? I've followed directions precisely which seems very easy, the page loads and I can see my single form field, and still when I type something in the field it is not working or doing any validation on the fly, or ever for that matter after the page loads. Tried another example line for line, this one errors when page load due to the following #args.computed.counter()# with the error key [computed] doesn't exist. Should I give up or does someone maybe recognize this issue and can help me figure out what I've missed during setup/config? Thankful for any help anyone may have. Thanks
    g
    g
    • 3
    • 48
  • d

    David Rogers

    02/01/2023, 5:32 PM
    Hi, I'm trying to pass data across a quick create/postInsert boundary, that is, I'd like to set a flag on the entity to conditionally run some stuff in
    postInsert
    . 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?
    s
    • 2
    • 16
  • d

    David Rogers

    02/01/2023, 9:11 PM
    does validateOrFail support "short-circuiting"? e.g. in the following, stop running after the
    required:true
    check fails
    • 1
    • 1
  • j

    Jason Wilson

    02/02/2023, 4:15 PM
    Can I access ColdBox handlers via ajax url? If so what would base url be?
    d
    • 2
    • 11
  • c

    Charles Robertson

    02/03/2023, 11:23 AM
    Hi Guys I wasn't really sure where to post this question, as it bridges CommandBox and StandAlone Talking about _cf-config_: https://www.forgebox.io/view/commandbox-cfconfig It says:
    You 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:
    Copy code
    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
    m
    b
    • 3
    • 4
1...212223...30Latest