My database.yml file does not seem to be picking up the environment variable correctly. When I put the password in directly, there are no issues, so I know it's not a password problem. I've also restarted the server.
Also, when I launch IRB on the server and type in ENV["DB_PASSWORD" it is returned:
2.2.0 :001 > ENV["DB_PASSWORD"]
=> "tej-wir-alt-od-yirf-aj-yam-yis-ed-an-buc"
database.yml
production:
database: myapp
username: root
password: <%= ENV["DB_PASSWORD"] %>
host: localhost
adapter: mysql2
port: 3306
pool: 15
timeout: 5000
.bashrc
export MYSQL_DB=tej-wir-alt-od-yirf-aj-yam-yis-ed-an-buc