RE: Commandbox multi-server and Lucee 5

Lucee 5’s final release is already on ForgeBox. Cfengine=lucee@5 or even just cfengine=lucee will pick it up. However, if you don’t specify a cfengine at all you will get 4.5.2 since that’s what the CLI runs on still.

Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5

Sorry to be thick, still very new to CommandBox, two questions:

  • Where do I put that ‘cfengine=lucee@5’ config, on the command line, like 'start {myserver} cfengine=lucee@5?

  • If I do that, then do ‘start {mysever}’ later, will CB remember the engine to use?

  • Is there any CommandBox reason I shouldn’t launch a project started with the default engine using Lucee 5? The app itself should be ok, wondering if there are any complications at the CB level.

Thanks,
Dave

  • Where do I put that ‘cfengine=lucee@5’ config, on the command line, like 'start {myserver} cfengine=lucee@5?

Well firstly, you’re mixing named parameters and positional parameters in your example. If you intend to use positional parameters, then the answer is to put them in the order they are shown in the documentation. Run “start help” to get his information. If you intend to use named parameters, then you put it wherever you want!

If I do that, then do ‘start {mysever}’ later, will CB remember the engine to use?

All parameters to the start command are stored in the server.json (or server-{name}.json by default if you provide a name) unless you provide the --!saveSettings flag. That means that subsequent starts of the server will use the same settings.

Is there any CommandBox reason I shouldn’t launch a project started with the default engine using Lucee 5

Sorry, I don’t understand the question. The default engine in CommandBox 3.3.0 is Lucee 4.5.3.020, so you can’t start the default engine using Lucee 5 as Lucee 5 isn’t the default engine! Now, if you’re asking if it’s possible to start the same site in Lucee 4 AND Lucee 5 at the same time-- sure go ahead! CommandBox will allow you to start 10 versions of every CF engine in existence (assuming you have the neccessary RAM). If you are going to run the same site on different engines, I suggest you give each server a name. In fact, I have an entire page in the docs devoted to this topic.
https://ortus.gitbooks.io/commandbox-documentation/content/embedded_server/serverJSON/using_multiple_serverjson_files.html

I would recommend you read through the CommandBox docs. It seems it would answer a great deal of your questions. Even the other questions you asked above are all covered there. e.g. https://ortus.gitbooks.io/commandbox-documentation/content/embedded_server/serverJSON/serverjson.html

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks for your assistance, and for your gentlemanly RTFM nudge :slight_smile:

I plead guilty, just busy and trying to get the specific stuff I need to do done in the minimum amount of time. Skipping the FM, like many shortcuts, isn’t always actually the fastest way…