tishub / skalholt.g8

Scala code generator for Play Framework and Slick

Home Page:https://tishub.github.io/skalholt.g8/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trying to connect to my existing postgresql

firemonk9 opened this issue · comments

I have change the database settings in application.conf for postgres and also changed the code to postgres driver from H2 driver yet when I run ./skalholt-ui, I get below error

Oops, cannot start the server.
Configuration error: Configuration error[Cannot connect to database [gen]]
..
..
Caused by: org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused: localhost:9092" [90067-187]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)

It is still trying to connect to H2. Am I missing any thing ?

Skalholt uses two kind of Database Schemas.
One is Database Schema, the other is Design Repository on the following figure.

You can change Database Schema, but you can't change Design Repository.
Database Schema is always H2.
So, you have to run H2(via executing h2-browser) when you use skalholt-ui.

Could you try run skalholt-ui again while running H2?