Skip to content

Instantly share code, notes, and snippets.

@kukielp
Last active October 28, 2020 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kukielp/42d854cc720133029c1a00362e36785b to your computer and use it in GitHub Desktop.
Save kukielp/42d854cc720133029c1a00362e36785b to your computer and use it in GitHub Desktop.
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