The trick to setting up a Sails.js app with a remote Postgres database hosted on Heroku is all about SSL. Here's how you do it:
Note: This is for Sails v0.9.x, the stable release at the time of this writing.
In Sails v0.10.x, the
config/adapters.js
file has been replaced withconfig/connections.js