FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Orm Reload Interceptor

v1.0.2 Public

ORM Reload Interceptor

Installation

box install orm-reload-interceptor

ORMReload with a URL flag

Just like you can add fwreinit=my_passsword to the URL to reload your ColdBox application, this module adds an interceptor that lets you specify ormreload=my_orm_reload_password.

The interceptor will work out of the box with no password set.

If you want to set the reload password, override the interceptor in your config/Coldbox.cfc settings:

interceptors = [
	{
		class="modules.orm-reload-interceptor.URLReload",
		properties = {
			reloadPassword = "my-password-here"
		}
	}
];

ORMReload on FWReinit

Installing this module will also automatically call ormReload() on a fwreinit (?fwreinit=1). You can override this setting by overriding the interceptor in your config/Coldbox.cfc settings, as well:

interceptors = [
	{
		class="modules.orm-reload-interceptor.ReloadWithFWReinit",
		properties = {
			autoReload = false
		}
	}
];

https://github.com/elpete/orm-reload-interceptor

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
1.0.2 Jun 14 2016 12:40 PM Jun 14 2016 12:41 PM

 

No collaborators yet.
     
  • Jun 14 2016 12:40 PM
  • Jun 14 2016 12:41 PM
  • 1,008
  • 29
  • 346