Commit 79a9e8aa authored by Jiří Štěpán's avatar Jiří Štěpán
Browse files

cloud connection pro frontend

parent 92b7b88c
......@@ -43,9 +43,9 @@ public class DatabaseSeeder implements
public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
//TODO - vykona sa hned po spusteni
System.out.println("Vypis po stupusteni aplikacie.");
//createTrips();
//createAchievement();
//createCategories();
createTrips();
createAchievement();
createCategories();
//setAchievementsAndCategories();
}
......
#spring.datasource.url=jdbc:postgresql:///rspdatabase?cloudSqlInstance=noted-compass-273009:europe-west1:rspdatabase&socketFactory=com.google.cloud.sql.postgres.SocketFactory&user=<POSTGRESQL_USER_NAME>&password=<POSTGRESQL_USER_PASSWORD>
#spring.datasource.username=postgres
#spring.datasource.password=admin
#spring.datasource.driverClassName=org.postgresql.Driver
#spring.jpa.show-sql=true
#spring.jpa.hibernate.ddl-auto=create
#spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL92Dialect
#spring.security.user.name=admin
#spring.security.user.password=admin
#spring.datasource.initialization-mode=always
#spring.datasource.schema=file:src/main/resources/schema.sql
#spring.datasource.data=file:src/main/resources/data.sql
#dfungujici reseni
spring.mail.host=smtp.mailtrap.io
spring.mail.port=587
spring.mail.username=5a69594fa0f6ab
spring.mail.password=4ab7e46dcdbb74
#fungujici reseni na cloud
spring.cloud.gcp.sql.enabled=true
spring.datasource.username=postgres
spring.datasource.password=admin
spring.cloud.gcp.sql.database-name=postgres
spring.cloud.gcp.sql.instance-connection-name=noted-compass-273009:europe-west1:rspdatabase
spring.datasource.continue-on-error=true
#
spring.cloud.gcp.project-id=noted-compass-273009
spring.cloud.gcp.credentials.location=file:src/main/resources/service-account.json
spring.jpa.hibernate.ddl-auto=create
##fungujici reseni na local
#spring.datasource.url=jdbc:postgresql://localhost:5432/rsp
#spring.datasource.username=postgres
#spring.datasource.password=admin
......@@ -44,14 +19,12 @@ spring.cloud.gcp.credentials.location=file:src/main/resources/service-account.js
#spring.jpa.hibernate.ddl-auto=create
#spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL92Dialect
#spring.security.user.name=admin
#spring.security.user.password=admin
#spring.mail.host=smtp.mailtrap.io
#spring.mail.port=587
#spring.mail.username=5a69594fa0f6ab
#spring.mail.password=4ab7e46dcdbb74
#
##spring.security.user.name=admin
##spring.security.user.password=admin
#
#MAIL client
spring.mail.host=smtp.mailtrap.io
spring.mail.port=587
spring.mail.username=5a69594fa0f6ab
spring.mail.password=4ab7e46dcdbb74
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment