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

    deactivateduser

    10/14/2020, 3:36 AM
    quick question, i know i have seen it posted here before but how does one fix the poor text formatting in power shell? especially running testbox
    b
    j
    • 3
    • 26
  • t

    teaman

    01/28/2022, 1:09 AM
    Where is the documentation for running commandbox with admin privileges?
    d
    • 2
    • 6
  • t

    teaman

    01/28/2022, 1:27 AM
    Has anyone gotten PDF Service Manager (Adobe Add-On install) to work with a Commandbox installed CF server? If so, what was the steps you took? I should add that I'm on a Windows 10 platform. After install I have ColdFusion 2018 Add-on Services showing as running in the Task Mgr Services list. I see jetty.exe running in the Details tabl (Task Mgr). But trying to set up a PDF service in CF Admin on port 8991 (or any other similar port) just fails to verify. It shows error:
    Copy code
    coldfusion.document.DocumentServiceImpl$NoSuchServiceManagerException: The Service Manager for name PDF_Services cannot be found.
    b
    j
    • 3
    • 20
  • m

    Mark Drew (he/him)

    01/28/2022, 4:35 PM
    Apologies for a dumb question, but in testbox, is there a way skip all the tests (so I can see which tests I have) when running tests in the browser doing
    method=runRemote
    ? I have a test that takes quite a long time (for good reasons) but I dont want to run ALL the tests just so I can click on the right test. If you follow me?
    d
    b
    +2
    • 5
    • 17
  • t

    teaman

    01/28/2022, 5:24 PM
    Downloaded the latest Commandbox (commandbox-jre-win64-5.4.2) but still have the older versioned directory (commandbox-jre-win64-5.2.1) in my Program Files dir. How does typing "box" in a terminal know which one to use? Or does it look for the highest versions folder and use that box exe inside? I don't see anything in the PATH env variable for box. When I do type box in vscode terminal, it now shows v5.3.1+00392 but that doesn't match the version in the downloaded filename.
    b
    d
    c
    • 4
    • 22
  • b

    bockensm

    01/28/2022, 6:08 PM
    Is there some kind of Docker Hub reckoning going on? I'm getting a 404 on CommandBox: https://hub.docker.com/r/ortussolutions/commandbox. Same with foundeo images.
    f
    b
    • 3
    • 3
  • e

    elpete

    01/28/2022, 11:00 PM
    If you want it to look different, transform it in your code before the action ends.
    s
    • 2
    • 4
  • s

    Simone

    01/29/2022, 4:34 PM
    i have a function in my api.cfc of coldbox and trying to do router configration
    Copy code
    route(
                patten="/api/getusersInfo/{id}",
                target="api.getuserinfo/{id}"
            );
    and getting this error called it like this http://127.0.0.1:544/Api/getusersInfo/1?fwreinit=1 The event: Api.getusersInfo is not a valid registered event.
    b
    • 2
    • 1
  • p

    Patrick

    01/29/2022, 5:31 PM
    https://coldbox.ortusbooks.com/the-basics/routing/routing-dsl/named-routes
    s
    • 2
    • 12
  • w

    wil-shiftinsert

    01/31/2022, 3:43 PM
    I have a project were I list my users, e.g. https/someproject12345/users users was a routing entry in my application. But to my surprise it is showing my local
    users
    directory on my macbook now. When I remove the users entry in my coldbox routing table it is still showing the same users directory. It should fail as an unknown event. So I suspect undertow is taking over control of this url, but how?? It never behaved like this before
    r
    b
    • 3
    • 7
  • z

    zackster

    01/31/2022, 6:44 PM
    Lucee 5.3.9.62-SNAPSHOT should work with an ARM JVM with M1 macs, I'd love to know if it works...... sent from my windows 11 box
    • 1
    • 2
  • p

    Peter Amiri

    01/31/2022, 10:03 PM
    How would you guys recommend handling the following. I am trying to build a package that has a dependency of another package. But I need one of the files of the dependent package to not override my main package. Using the ignore attribute in the box.json of my package doesn't help because it refers to files in my package not files in the dependent package.
    b
    n
    r
    • 4
    • 30
  • t

    thisOldDave

    02/01/2022, 9:40 AM
    if I want to use the
    Proxy Peer Address Handler
    do I simply add it to the server rules without a predicate? or is it already running by default?
    b
    • 2
    • 7
  • d

    David Rogers

    02/01/2022, 4:29 PM
    any cfformat pros know if there is a setting for the following: "don't change case in the following position:"
    Copy code
    /**
    * ...in a docblock...
    * angleBracketSurrounds<caseSensitiveComment>
    *                       ^^^^^^^^^^^^^^^^^^^^
    */
    b
    • 2
    • 2
  • d

    Daniel Mejia

    02/01/2022, 4:40 PM
    Can anyone think of a more efficient and performant way to do this? I have an array of arrays and I want to convert it to a CSV file. I loop over the array and convert the inner arrays to lists and save the lists to a variable with line endings, then write the content to the csv file.
    Copy code
    var out = "";
    for( a in myArray ) {
      out += out & a.toList() & chr(10) & chr(13);
    }
    fileWrite( csvFullPath, out );
    This is pretty minimal code.
    a
    d
    +3
    • 6
    • 55
  • d

    davidrschaller

    02/01/2022, 8:38 PM
    Working with CB6 exception handling. ( BTW Whoops is great! ) I'm new to CB and integrating a legacy app. Working to display a custom error page for production but 'Server Error 500 - Internal server error ...' message is output prior to displaying my custom error information. I am forcing an error '#forceError#' to trigger the exception for testing. Any thoughts on how to exclude the Server Error message?
    • 1
    • 1
  • d

    Dean

    02/02/2022, 4:17 AM
    Have a scripted commandbox, Lucee server install that we use for all our servers, today it started throwing the error that I'll post in the thread....
    b
    • 2
    • 95
  • p

    Pete Williamson

    02/02/2022, 12:06 PM
    With commandbox-migrations, Is it possible to disable
    migrate down
    ? I rarely want to run
    down
    more than once, occasionally step back through a few migrations to fix something I've done wrong recently in development, but once it's been merged and deployed,
    migrate down
    doesn't make any sense to me and is just a database self destruct
    b
    • 2
    • 10
  • d

    Daniel Mejia

    02/02/2022, 3:29 PM
    I can't figure out why my /healthcheck route is not working. It worked when I first created the 6.0 coldbox app, but I removed that /healthcheck route when I added my 4.3 modules and configuration. My app is running good, and now that I want a /healthcheck route it does not work I get a
    Invalid Event
    error.
    Copy code
    /config/Routes.cfc
       ...
       route( "/healthcheck", function( event, rc, prc ){
          return "Ok!";
       });
       route( ":handler/:action?" ).end();
       ...
    r
    • 2
    • 6
  • r

    risto

    02/02/2022, 4:02 PM
    I setup commandbox on a new computer and received the following error. I've been using command box for a long time and have spun up many sites without problems but can't figure this out. Does anyone think it just simply can't connect to forgebox? I've tried starting up my site both with my server.json and without. Server.json just has this for the engine "cfengine":"lucee@5"
    w
    • 2
    • 2
  • j

    Jonas Eriksson

    02/02/2022, 5:33 PM
    Apologies if this should be clear or was previously asked - I am not quite clear as to what the difference is between the ColdBox rest vs the ColdBox rest-hmvc apps (https://coldbox.ortusbooks.com/getting-started/installation)? Or rather, which one I should start using, if my "goal" is to be able to offer an API so external apps can access certain database table contents in my website? I have previously used the Mura CMS API/ORM (a tiny amount only) but would like to keep the data separate from Mura/Masa CMS in this case as I generally want to build any new apps with ColdBox and become more, ahem, modern. (btw very likely looking into Data-Boss from Ortus as well, but I only discovered that tonight🙃). Cheers in advance for answers to my total beginner questions 🍺
    b
    w
    • 3
    • 7
  • l

    laslo7

    02/02/2022, 5:51 PM
    Why would CommandBox keep using lucee even though I am telling it to use the latest ACF?
    b
    • 2
    • 15
  • j

    Jeff Jones

    02/02/2022, 11:48 PM
    Has there been recent issues with Commandbox? I use it for quick spinups for client dev instances. Not had a problem like this previously. Created a new directory, changed over and ran box. Config to adobe@10 (client) Set port and host, turned the tray off (Linux) and tried to start it up. Failed to start. I can get a lucee instance up with server start dfengine=lucee. Tried that with adobe@10 and no co. Run with -console and see a JavaullPointer right after starting Flex. Jot sure if it is a coincidence. Runwar: Added websocket context [INFO ] 02/02 173117 INFO License Service: Flex 1.5 CF Edition enabled [INFO ] 02/02 173117 INFO Starting Flex 1.5 CF Edition [INFO ] 02/02 173117 INFO Macromedia Flex Build: 87315.134646 [ERROR] java.lang.NullPointerException [ERROR] at coldfusion.CfmServlet.init(CfmServlet.java:97) [ERROR] at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121) [ERROR] at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) [ERROR] at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117) [ERROR] at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:309) Complete output in the message thread.
    b
    • 2
    • 19
  • d

    davidrschaller

    02/03/2022, 2:38 PM
    Does anyone have experience wrapping a legacy application with ColdBox? ( https://www.ortussolutions.com/blog/coldbox-legacy-app-demo ) I can throw an error within a legacy template and get the expected error handler results. When throwing the same error within a Coldbox view template, the error becomes a server error rather than a simple exception.
    j
    p
    b
    • 4
    • 50
  • r

    risto

    02/03/2022, 4:34 PM
    Trying to remove commandbox bullet train from commandbox. I did artifacts remove and restarted. Still there. I did artifacts clean and restarted and the colorful prompt is still there. Any other ideas I can try? Thanks
    d
    b
    +2
    • 5
    • 27
  • b

    bockensm

    02/03/2022, 10:26 PM
    I have a question about running a server inside a Docker container in a GitLab CI workflow. Details within.
    b
    • 2
    • 56
  • p

    Peter Amiri

    02/04/2022, 5:59 PM
    @bdw429s how does one go about registering or requesting a new type in ForgeBox. I've built some CFWheels templates (skeletons) and would like to change their type from "mvc" to "CFWheels Templates" or "CFWheels Skeletons". Is this possible?
    b
    • 2
    • 13
  • m

    Marco

    02/04/2022, 10:29 PM
    I am trying to run commandbox in a docker for windows container. FROM mcr.microsoft.com/windows/servercore:ltsc2019 (Dockerfile) files copied to container (pseudo code): c:\\commandbox - jre - box.exe c:\\app - index.cfm ("Hello World)" - server.json { "web":{ "rewrites":{ "enable":true }, "http":{ "port":"8500" } }, "jvm":{ "heapSize":"1024" }, "app":{ "cfengine":"lucee" } } WORKDIR c:\\app
    docker run -it -p 8500:80 --name cf_helloworld_container cf_helloworld_image
    then inside the windows container I run: PS C:\app> box install commandbox-cfconfig PS C:\app> box CommandBox> start CommandBox> server open Opening...127.0.0.1:8500/ Browser opened! in the host browser -> localhost:8500 (This site can't be reached) Q: do I need to configure "mysite" in the container's IIS to render in the host browser? Thanks - Marco
    b
    • 2
    • 15
  • d

    deactivateduser

    02/05/2022, 3:59 AM
    @User In commandbox is there a way to see if another system level module is already installed? Say i want to check if hostupdater is already installed. This isn't to use hostupdate, but because there could be conflicting actions occurring if both modules are installed.
    b
    • 2
    • 5
  • s

    Simone

    02/07/2022, 12:51 PM
    i have the lucee server running on one port and had my work done, somehow my system crashed and restarted the commandbox but it started it on a different port and now i open my page, it has the file and path, but when i call it it says not found even i have the code under the api and the index method returns me custom message
    b
    • 2
    • 4
12345...30Latest