fe_sendauth: no password supplied Ruby On Rails 5

0

I'm going to upload a Rails project to Heroku so the project is in Postgres but when I try it in development (Not in production) I get this error: PG :: ConnectionBad fe_sendauth: no password supplied

In my database file I have it like this:

  

development:

     
    

< & lt ;: default

         
      

database: mubi_development

             
        

username: mubi

                 
          

password: password

        
      
    
  
    
asked by isalvinator 30.06.2017 в 05:34
source

1 answer

0

Remember that the YAML files are based on the indentation of their elements, so it is important to have all of them correctly aligned at their respective level.

database.yml uses only two levels:

  • The environment for which the BD configuration is provided.

  • The configuration attributes of the database.

  • In your case, the code that you sample should be modified to look like this:

    development:
      <<: *default
      database: mubi_development
      username: mubi
      password: password
    
        
    answered by 30.06.2017 в 15:55