Last active
October 28, 2020 06:25
-
-
Save kukielp/42d854cc720133029c1a00362e36785b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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