Pusher

The Pusher appender connects cfScribe to the Pusher service. It requires a pusher account.

Configuration

  1. In the /modules/scribe/libs is the pusher-http-java-1.2.0.jar file. This needs to be copied to either the /lib folder in your ColdBox installation or to another folder and the key

"app":{    "libdirs":"jars"}

added to the server.json file in your server root. For more information about the server.json file check the CommandBox documents.

2. The Pusher appender requires 4 env properties in the .env file. These are

PUSHER_APPID

PUSHER_CLUSTER

PUSHER_APISECRET

PUSHER_KEY

If these are not set, the appender will throw an error when it is created. To get started if you do not have an account yet, put dummy values in the .env file.

Sample Configuration

appenders : {
   "pusher" : { "class" : "scribe.models.pusher", "properties" : {} }
},
"rules" : {
    "production" : ["pusher"]
}

Last updated