I need an urgent favor. I am tryign to bring up discourse. but running
./launcher rebuild app is giving this error
I, [2018-03-15T18:47:04.578710 #13] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' rake aborted! PG::ConnectionBad: could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? could not connect to server: Cannot assign requested address Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?
I however checked and I am able to connect to database manually
e$ psql -h localhost discourse_development psql (9.5.12) SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off) Type "help" for help.
Database entry in my containers/app.yml file is like this
## TODO: The domain name this Discourse instance will respond to DISCOURSE_HOSTNAME: "188.8.131.52" DISCOURSE_DB_USERNAME: ubuntu DISCOURSE_DB_PASSWORD: discourse DISCOURSE_DB_HOST: localhost DISCOURSE_DB_NAME: discourse_development
Can anyone please give some leads?