ContentBox 3.1.0 Released
Tweet
We are pleased to announce the general availability of ColdBox 4.3.0, WireBox 4.3.0, CacheBox 4.3.0 and LogBox 4.3.0. This is a minor release with some great improvements and lots of bug fixes. So let's look at the major things in this release.
We are pleased to announce a minor release of our CommandBox CLI, server, and package manager tool today. Version 3.3.0 of CommandBox is our second minor release since we added support for starting Adobe ColdFusion engines, Railo, and Lucee 5 web servers. This release has 46 tickets that focus on cleaning up more rough edges around the server implementation, adding features, and of course, fixing bugs. A big thanks to Denny Valiant and his work on Runwar, which is the library that makes CommandBox's severs work.
You can download the latest binary from our CommandBox product home page:
We've also updated our CommandBox documentation book to cover all these new features which can be found here:
CommandBox GitBook Documentation
Remember, you can send pull requests via Github for any typos or missing content you find in our GitBooks!
The Command API Docs also show the latest commands and usage too:
CommandBox Command API Documentation
Let's take a quick peek at the major new features in CommandBox 3.3
The embedded CommandBox server have seen a number of nice enhancements to make it easier for you to use CommandBox for super easy local development.
The more people begin to use CommandBox for local development, the more interested they became in being able to run FusionReactor on their dev servers to help trouble shoot their code. That's why we created a CommandBox FusionReactor module. It's not part of the core, but can be installed in a single command and will attach FusionReactor's server monitor to every server you start. You'll need to have a FusionReactor license or sign up for a trial to use it.
install commandbox-fusionreactor fr register "your FR license key" server start fr open
CommandBox allows you to create web aliases for the web server that are similar to virtual directories. The alias path is relative to the web root, but can point to any folder on the hard drive. Aliases can be used for static or CFM files. To configure aliases for your server, create an object under web called alises. The keys are the web-accessible virtual paths and the corresponding values are the relative or absolute path to the folder the alias points to.
Here's what your server.json might look like.
{ "web" : { "aliases" : { "/foo" : "../bar", "/js" : "C:\static\shared\javascript" } } }
Here's how to create aliases from the server set command:
server set web.aliases./foo = bar
You can customize the error page that CommandBox servers return. You can have a setting for each status code including a default error page to be used if no other setting applies.
Create an errorPages object inside the web object in your server.json where each key is the status code integer or the word default and the value is a relative (to the web root) path to be loaded for that status code.
This is what you server.json might look like:
{ "web" : { "errorPages" : { "404" : "/path/to/404.html", "500" : "/path/to/500.html", "default" : "/path/to/default.html" } } }
You can set error pages via the server set command like this:
server set web.aliases.404=/missing.htm
You can customize these tray menus and add your own option for your convenience. To add a menu contribution to an individual server, add the following to your server.json
:
{ "trayOptions":[ { "label":"Foo", "action":"openbrowser", "url":"http://${Setting: runwar.host not found}:${Setting: runwar.port not found}/foobar.cfm", "disabled":false, "image":"/path/to/image.png" } ] }
We've updated to a new library that creates the tray icon for your running servers and the menu that appears when you right click. In addition to better support for some Linux distros, we've added some nice new icons to the menus.
Before any package script is run, CommandBox will look for another package script with the same name, but prefixed with pre. After any package script is run, CommandBox will look for another package script with the same name, but prefixed with Post. So if you have a package that contains 3 package scripts: foo, preFoo, and postFoo, they will run in this order.
This works for built-in package script names as well as as doc package scripts. It also works on any level. In the example above, if you created a 4th package script called prePreFoo, it would run prior to preFoo.
If you use more than one ForgeBox login, perhaps a personal one and a company one, it can be a pain to keep logging in. It's also hard to remember the last user you logged in with. We've introduced two new commands to help with this. Run this to tell you who you are logged in as:
forgebox whoami
Run this to switch between users that you've previously logged in with:
forgebox use myUser
We've added a new "onRelease" interceptor and package script to help with the workflow of publishing packages. Here's a run down of the three key points when bumping a package version.
Here is a typical package script work flow for working with a package that's hosted on GitHub and published to ForgeBox:
"scripts":{ "preVersion":"testbox run", "postVersion":"package set location='gituser/repov#`package version`'", "postPublish":"!git push --follow-tags" }
Then when you want to publish a new version of your package, commit your changes to Git and run the following commands:
bump --minor publish
Those two commands, in combination with your package scripts, would accomplish the following:
Announced while a package is being installed, after the package endpoint and installation directory has been resolved but before the actual installation occurs. This allows you to override things like the installation directory based on package type. Any values updated in the interceptData struct will override what the install command uses.
The Lucee version that the CLI runs on has been updated to be 4.5.3.020 which is also now the default engine to be used when you use the "server start" command and don't specify a cfengine. If you still want to start a web server on Lucee 4.5.2.018, then simply to this:
start cfengine=lucee@4.5.2+018
There are tons of little bug fixes in this version that you can view in our release notes.
We are happy to announce, ContentBox 3.0 FINAL is now available to the public. After a lot of hard work, we are finally ready to cut the release. With 100+ issues included in this release, this major release is nothing short of massive. With ColdBox 4 updates, Theme updates, Enterprise updates, Security Updates, JSON Support and Exports, Native Markdown Support, Autosave and much more, this major release has something for everyone. ContentBox 3.1.0 is already in development as well and can be installed via CommandBox using the contentbox@be
Identifier.
Alongside the release we have many other announcements around the CMS. So get ready!
We are happy to announce the immediate availability of CommandBox 3.2.0 to the public. This is a minor release of the CLI tool and aimed at adding some polish to the multi-server features that came out in 3.1. Jon Clausen also worked to get the latest Adobe 10, 11, and 2016 updates added to ForgeBox as well so you can start up Adobe servers with all the latest fixes.
We are pleased to announce the general availability of CommandBox 3.1.1 Final. This is a minor release of our CLI tool, but with some major new features. We actually made the final 3.1.1 builds public a couple weeks ago for Into The Box, but have just now finalized the documentation and press release.
More than two years have passed since CFCouchbase 1.1 was released. With community support, we are happy to announce the release of CFCouchbase 2.0.0! If you are not familiar with CFCouchbase we encourage you to checkout the Documentation. The SDK has been updated to support the new functionality available in Couchbase Server 4.x, including: