Great resource on how to configure C9 for Rails/Postgres development: C9 + Rails + Postgres guide. The following commands can be pasted into C9 to build the configuration:
To keep Postgres running even after a workspace restart, I also add this shell script to the `.profile` file:
For a full guide, here is a good reference: