Installation
Get up and running with cbfs in no time!
Last updated
Was this helpful?
Get up and running with cbfs in no time!
Last updated
Was this helpful?
Use to install:
To install the bleeding-edge version:
You can configure the module by adding a cbfs
structure to the moduleSettings
in your config/Coldbox.cfc
file or you can create your own config/modules/cbfs.cfc
configuration file if you are using ColdBox 7. Below you can see the default configuration for cbfs.
By default, cbfs, comes pre-configured with 3 disks:
default
Local
{app}/.cbfs
A private location for assets
public
Local
{app}/includes/public
A public accessible location inside of your application
temp
Local
{CF internal}
The Java temp internal directory
Please note that you can change the location of these disks by adding the configuration or you can easily do so using the following environment variables:
CBFS_DEFAULT_DISK_PATH
CBFS_PUBLIC_DISK_PATH
CBFS_TEMP_DISK_PATH
The disks
structure is used to register disks in your application. The key
is the name of the disk which is a structure that each disk needs in order to be configured:
provider : The name of the provider (if core) or a full CFC path or WireBox ID
properties : A structure of configuration properties the disk requires (if any)
You can use the defaultDisk
key to specify which disk will be the default
in your system. By default
it's the default
one which is not web-accessible and stored as .cbfs
in your root application.
Please check out the section in order to see the properties and requirements for each one of them.