When I make suspenders app, it fails because database.yml file is missing username and password.
So I add username and password using dotenv and add some code to databes.yml file.
username: <%= ENV[“USERNAME”] %>
password: <%= ENV[“PASSWORD”] %>
This works great!
However, I want to make it work without doing extra job.
Can someone give me a direction to solve this problem?
If you don’t specify a username and password then I think it defaults to using the root (or maybe postgres?) account, with a blank password. So you probably just need to create that, and give it the appropriate permissions.