Closed arioch closed 10 years ago
Is it possible that the production environment is not set in RACK_ENV? Check RACK_ENV or add development section to the database.yml
Just to be sure I've added development to database.yml. Same error. Same goes for the RACK_ENV parameter.
Not RAILS_ENV RACK_ENV is the correct one.
If RACK_ENV is not set the fallback is "development"
My apologies I must've misread the first time. I've updated my previous comment.
The same error occurs on both Debian 7 and Ubuntu 12.04.
Try adding the "test" section.
My database.yml:
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: posty_api_development
pool: 5
username: user
password: pass
socket: /var/mysql/mysql.sock
test:
adapter: mysql2
encoding: utf8
reconnect: false
database: posty_api_test
pool: 5
username: user
password: pass
socket: /var/mysql/mysql.sock
While set the Environment please make sure the space after the ENVIRONMENT..(EX : set RAILS_ENV=development)
I'm running into the following error:
Which lead me to config/database.yml. However adapter is filled-out.
I'm running Ruby 1.9.3 on Debian 7:
And the following gems are installed:
Any pointers how to get this running?