Advertisement
JanRuusuvuori

example-configuration.cfm

Sep 25th, 2012
593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!---
  2.        This is an example configuration template for a ColdFusion 10
  3.        server instance.
  4.  
  5.        Please refer to ColdFusion 10 Administrator API documentation
  6.        for further details and more configuration options.
  7.  
  8.     Look for "CFIDE.adminapi" in
  9.     http://localhost:8500/CFIDE/componentutils/componentdoc.cfm
  10. --->
  11. <cfscript>
  12.         admin = createObject("component","cfide.adminapi.administrator");
  13.         runtime = createObject("component","cfide.adminapi.runtime");
  14.         extensions = createObject("component","cfide.adminapi.extensions");
  15.         datasource = createObject("component","cfide.adminapi.datasource");
  16.  
  17.         // Log in with blank password (assuming security is disabled)
  18.         admin.login("");
  19.  
  20.         // Runtime settings
  21.         runtime.setScopeProperty("UUIDCFToken", false); // Use UUID for cftoken : no
  22.  
  23.         // Mappings
  24.         extensions.setMapping("/mapped_path", "/path/to/my_app/mapped_path");
  25.  
  26.         // Custom tag paths
  27.         extensions.setCustomTagPath("/path/to/my_app/customtags");
  28.  
  29.         // Datasource
  30.         datasource.setOracle(
  31.                 name = "local_orcl",
  32.                 host = "localhost",
  33.                 sid = "ORCL",
  34.                 port = "1521",
  35.                 username = "SCOTT",
  36.                 password = "TIGER",
  37.                 description = "Local oracle instance",
  38.                 disable_clob = false,
  39.                 disable_blob = false
  40.         );
  41. </cfscript>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement