Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
component {
this.name="cfmlServerless";
this.applicationTimeout = CreateTimeSpan(10, 0, 0, 0); //10 days
this.sessionManagement=false;
this.clientManagement=false;
this.setClientCookies=false;
// Yes yes, shoudl not embed in code but for PoC it's fine.
this.datasources = {
acf: {
database : "acf",
host : "{mySQLserver/RDSinsatnce_DNS_Name_or_IP_Address}",
port : "1433",
driver : "MSSQLServer",
username : "username",
password : "password"
}
};
this.datasource = "acf";
function onApplicationStart() {
application.resultsArray = [];
return true;
}
function onMissingTemplate(){
include '404.cfm';
}
//function onError( any Exception, string EventName ) {
// writeOutput("Some error has occured");
// abort;
//}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment