fix: datasource в onApplicationStart
This commit is contained in:
+7
-6
@@ -13,12 +13,6 @@
|
||||
<cfset this.setclientcookies="No"/>
|
||||
|
||||
<cfset this.datasource = "baza"/>
|
||||
<cfset this.datasources["baza"] = {
|
||||
class: "org.postgresql.Driver",
|
||||
connectionString: "jdbc:postgresql://postgresqlk8s-master.418f9960-2eb7-4429-b2ec-ac64319d7268.svc.cluster.local:5432/baza",
|
||||
username: "super",
|
||||
password: "hoHdkA23yxlD9oMUlZ1bIbNyc6DE2mNJmyHMNkEpVD1F4suQs7O2lyN4t0qITyzt"
|
||||
}/>
|
||||
|
||||
<!--- REST API --->
|
||||
<cfset this.restEnabled = true/>
|
||||
@@ -38,6 +32,13 @@
|
||||
output="false"
|
||||
hint="Fires when the application is first created.">
|
||||
|
||||
<cfset this.datasources["baza"] = {
|
||||
class: "org.postgresql.Driver",
|
||||
connectionString: "jdbc:postgresql://postgresqlk8s-master.418f9960-2eb7-4429-b2ec-ac64319d7268.svc.cluster.local:5432/baza",
|
||||
username: "super",
|
||||
password: "hoHdkA23yxlD9oMUlZ1bIbNyc6DE2mNJmyHMNkEpVD1F4suQs7O2lyN4t0qITyzt"
|
||||
}/>
|
||||
|
||||
<cfreturn true />
|
||||
</cffunction>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user