Created
May 4, 2017 09:42
-
-
Save arjan0307/e1a2a810604b5ba8fdf49782f60e5363 to your computer and use it in GitHub Desktop.
Makara on heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export MASTER_URL=$DATABASE_URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
url: <%= ENV['DATABASE_URL'] %> | |
test: | |
url: <%= ENV['TEST_DATABASE_URL'] %> | |
production: | |
url: <%= ENV.fetch('MASTER_URL', '').sub(/^postgres/, "postgresql-makara") %> | |
makara: | |
connections: | |
- role: master | |
# MASTER_URL is set in .profile, makara doesn't like it when you use DATABASE_URL here directly | |
url: <%= ENV['MASTER_URL'] %> | |
<% if ENV['SLAVE_URL'].present? %> | |
- role: slave | |
url: <%= ENV['SLAVE_URL'] %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI! I try to do exaclty the same thing, but it does not work for me :(
Can you tell me your ruby version please.
Thank you