liquibase launch on Openshift



  • There's a web application that needs to be sealed on Openshift. The project is going to gradle, building.gradle has created a target for liquibase launch. In a local car, all tasks are correctly designed and the server is launched tomcat. In an attempt to launch a gradle liquibase, the log is issued

    :restservice:liquibaseUpdateUnexpected error running Liquibase:
    liquibase.exception.DatabaseException: Connection could not be created to
    jdbc:postgresql://$OPENSHIFT_POSTGRESQL_DB_HOST:$OPENSHIFT_POSTGRESQL_DB_PORT/gradletest
    with driver org.postgresql.Driver.  Possibly the wrong driver for the given database URL
    

    The project uses such dependence

    'org.postgresql:postgresql:9.2-1004-jdbc41'
    'org.liquibase:liquibase-core:3.4.2'
    

    Starting the target :restservice:liquibaseUpdate comes from action_hook deploy.

    Used postgresql versions from 9.2 to 9.4 in combination with liquibase 3.4.1 and 3.4.2. Openshift postgresql 9.2. Also tried the method from: https://stackoverflow.com/questions/26569302/postgresql-openshift-possibly-the-wrong-driver-for-the-given-database-url

    How do you get to work?



  • You know what a mistake is that the tower doesn't replace the variables. Does everything work if in the violin of the deck the characteristics of the OBD connection through Systev.getenv('some_property')




Suggested Topics