Pregunta

I deployed a Rails app using Rubber to EC2. I am just using the default postgresql config. https://github.com/rubber/rubber/blob/master/templates/postgresql/config/rubber/rubber-postgresql.yml

Does anyone know what the default credentials are?

enter image description here

¿Fue útil?

Solución

Directly from rubber-postgresql.yml:

db_user: "#{app_name[0,16].downcase}"
db_pass:
db_name: "#{app_name.downcase}_#{Rubber.env}"

So your username is the first 16 characters of your app name(or the full name, if less than 16 characters) down cased, your password is blank, and your database is your app name down cased followed by '_' and the environment. In your case the environment is probably 'production'.

As far as the port and hostname, try leaving them as the default and see if that works.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top