fix: datasource в onApplicationStart

This commit is contained in:
2026-06-18 12:43:11 +04:00
parent 09e9c816ac
commit da8660ff58
+7 -6
View File
@@ -13,12 +13,6 @@
<cfset this.setclientcookies="No"/> <cfset this.setclientcookies="No"/>
<cfset this.datasource = "baza"/> <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 ---> <!--- REST API --->
<cfset this.restEnabled = true/> <cfset this.restEnabled = true/>
@@ -38,6 +32,13 @@
output="false" output="false"
hint="Fires when the application is first created."> 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 /> <cfreturn true />
</cffunction> </cffunction>