I cloned a project i did on cloud9 IDE on my computer. This project is on rails and use Heroku & postgresql.
I want to launch it from my computer, i did everything needed to launch the project like install libs, bundle install, install postgresql etc...
But it seems i missed something for postgresql. I encounter 2 issues
The first one, I can't launch psql directly from my bash like i do on Cloud9. I must do :
sudo -i -u postgres //it open something like a new bash
psql //then psql is launch
I wish to be able to type only psql but it display
role tellimi is not permitted to log in
I tried to create role (PostgreSQL: role is not permitted to log in) but the message became
database tellimi does not exist
but tellimi is my username, not a database
Then i wanted to check my database on salesforce so i add the url in a new env variable $DTABASE_URL but when i do
psql $DATABASE_URL
it display
psql: could not connect to server: Connexion terminée par expiration du délai d'attente Is the server running on host "ec2-54-247-125-202.eu-west-1.compute.amazonaws.com" (54.247.125.202) and accepting TCP/IP connections on port 5432?
So how to set-up correctly postgresql to answer those 2 problems?