tishub / skalholt.g8

Scala code generator for Play Framework and Slick
https://tishub.github.io/skalholt.g8/
36 stars 6 forks source link

trying to connect to my existing postgresql #9

Open firemonk9 opened 8 years ago

firemonk9 commented 8 years ago

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 ?

yugolf commented 8 years ago

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?