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:
parent
70e82632f2
commit
a3dd8e6c95
2 changed files with 5 additions and 6 deletions
2
config/database.yml.heroku
Normal file
2
config/database.yml.heroku
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
production:
|
||||
url: <%= ENV["CLEARDB_DATABASE_URL"].sub(/^mysql/, "mysql2") %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue