-
Notifications
You must be signed in to change notification settings - Fork 1
/
Application.cfc
42 lines (32 loc) · 1.17 KB
/
Application.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
component output="false"
{
this.name = "CFShoutout";
this.applicationTimeout = createTimespan(0,2,0,0);
this.mappings["/contest"] = getDirectoryFromPath(getCurrentTemplatePath());
this.wschannels = [{name="shoutout", cfclistener="ShoutoutSocketService"}];
// REST Settings
this.restsettings.skipCFCWithError = true;
// ORM SETUP
this.ormEnabled = "true";
this.ormSettings.datasource = "cfshoutout";
this.ormsettings.cfclocation = "model";
this.ormsettings.dbcreate = "update";
this.ormsettings.searchenabled = "true";
this.ormSettings.search.autoindex = "true";
this.ormSettings.search.language = "English";
this.ormsettings.search.indexDir = getDirectoryFromPath(getCurrentTemplatePath()) & "/ormindex";
public boolean function onRequestStart()
{
if( structKeyExists( url, "ORMReload" ) ){
ORMReload();
ORMIndex();
}
if(structKeyExists(url, "initREST"))
{
restInitApplication(getDirectoryFromPath(getCurrentTemplatePath()),this.name);
}
return true;
}
function onWSRequestStart( type, channel, user ){
}
}