Browse Source

Point staging profile database to another postgres service

Monte Cillo Co 8 years ago
parent
commit
e94a175920

+ 7 - 8
crss-admin/crss-admin-staging.yml

@@ -1,19 +1,18 @@
 spring:
   profiles.include: ldap
-  jpa:
-    database: ORACLE
-    properties:
-      hibernate:
-        dialect: org.hibernate.dialect.Oracle10gDialect
   datasource:
-    platform: oracle
-    url: jdbc:oracle:thin:@192.168.241.62:1521:ORCL
+    url: jdbc:postgresql://crss_postgres:5432/crss_admin
     username: crss_admin
     password: crss_admin
-    driverClassName: oracle.jdbc.OracleDriver
+    driverClassName: org.postgresql.Driver
     hikari:
       connectionTimeout: 10000
       maximumPoolSize: 20
+  jpa:
+    database: POSTGRESQL
+    properties:
+      hibernate:
+        dialect: org.hibernate.dialect.PostgreSQL94Dialect
   mail:
     host: 192.168.241.62
     port: 3025

+ 1 - 1
crss-metering/application-staging.yml

@@ -1,7 +1,7 @@
 spring:
   profiles.include: pg-query
   datasource:
-    url: jdbc:postgresql://192.168.241.62:5432/crss_metering
+    url: jdbc:postgresql://crss_postgres:5432/crss_metering
     username: crss_metering
     password: crss_metering
     driverClassName: org.postgresql.Driver

+ 7 - 9
crss-reg/crss-reg-staging.yml

@@ -1,19 +1,17 @@
 spring:
-  jpa:
-    database: ORACLE
-    properties:
-      hibernate:
-        dialect: org.hibernate.dialect.Oracle10gDialect
   datasource:
-    platform: oracle
-    url: jdbc:oracle:thin:@192.168.241.62:1521:ORCL
+    url: jdbc:postgresql://crss_postgres:5432/crss_reg
     username: crss_reg
     password: crss_reg
-    driverClassName: oracle.jdbc.OracleDriver
+    driverClassName: org.postgresql.Driver
     hikari:
       connectionTimeout: 10000
       maximumPoolSize: 20
-
+  jpa:
+    database: POSTGRESQL
+    properties:
+      hibernate:
+        dialect: org.hibernate.dialect.PostgreSQL94Dialect
 app:
   xdf:
     client-type: sftp

+ 1 - 1
crss-sched/crss-sched.yml

@@ -23,7 +23,7 @@ server:
 spring:
   profiles: staging
   datasource:
-    url: jdbc:postgresql://192.168.241.62:5432/crss_sched
+    url: jdbc:postgresql://crss_postgres:5432/crss_sched
     username: crss_sched
     password: crss_sched
     driverClassName: org.postgresql.Driver