Use config/database.yml for ClearDB config

If we use .env heroku neither sees DATABASE_URL nor
config/database.yml and assumes we use postgre. There
also is no need to load the rails env in the task.
This commit is contained in:
Henne Vogelsang 2016-05-25 15:12:30 +02:00
parent 70e82632f2
commit a3dd8e6c95
2 changed files with 5 additions and 6 deletions

View file

@ -0,0 +1,2 @@
production:
url: <%= ENV["CLEARDB_DATABASE_URL"].sub(/^mysql/, "mysql2") %>