- Download and install the Postgres.app program. (Skip to step 3 if you already know you have Postgres installed on your Mac)
- Add the Postgres.app
psql
to your$PATH
:export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
docs - In Terminal,
cd
to the folder of your Heroku project, and runheroku pg:psql
- You should now be in an interactive PSQL session, by default Heroku will connect to the promoted database set as the config var
DATABASE_URL
.
This widget requires a library for the timezone manipulation, moment.js and moment-timezone.js and then also build the necessary data at moment-timezone-data
Then in assets/javascripts/application.coffee
add the following three lines above #= require_directory .
#= require moment