I recently released a new blog post about deploying a CUBA application to Heroku. With the latest changes in 7.2 it even got easier to perform the deployment. In combination with Heroku it really becomes an easy, fast and reliable way of hosting your CUBA application.
In the blog post you will learn the difference between IaaS and PaaS like Heroku. Then I go ahead and explain the “PaaS experience” on the concrete example of deploying the Petclinic app to Heroku.
I followed your steps for deploying cuba apps to the heroku environment, However I’m running into an issue regarding the dataSource or database connection.
cuba.dataSource.jdbcUrl=${JDBC_DATABASE_URL} appears as unused.
an extract from the logs: Caused by: java.lang.RuntimeException: Failed to load driver class org.postgresql.Driver in either of HikariConfig class loader or Thread context classloader
Thank you for the reply, I have installed the latest version and cuba.dataSource.jdbcUrl=${JDBC_DATABASE_URL} is now active.
It seems like heroku doesn’t have free mysql database options equivalent to Heroku Postgres. The available Mysql options are all asking for credit card info.
I’m now busy installing Postgres on my machine.
I will revert with feedback.