This should fix the two problems we've had with the streaming exports deploy:
We were using pg-native, in part for its SSL support, but it breaks pg-streaming.
But switching off pg-native breaks the heroku deploy since it needs SSL to connect to preprod and prod db.
Meanwhile local/dev/etc environments need to NOT use SSL for their db connections.
So we get yet another configuration variable:
DATABASE_SSL (default: false)
Must be set to true for heroku or similar production environments (depending on the database host)
This should fix the two problems we've had with the streaming exports deploy:
We were using pg-native, in part for its SSL support, but it breaks pg-streaming. But switching off pg-native breaks the heroku deploy since it needs SSL to connect to preprod and prod db. Meanwhile local/dev/etc environments need to NOT use SSL for their db connections.
So we get yet another configuration variable:
DATABASE_SSL (default: false) Must be set to
true
for heroku or similar production environments (depending on the database host)