Permalink
Browse files

Adding shared_database as default addon

  • Loading branch information...
1 parent a29f44d commit d73fbed44c41194ad85bf90976360faa479743e3 @jacquescrocker jacquescrocker committed Nov 11, 2010
Showing with 4 additions and 1 deletion.
  1. +1 −1 .rvmrc
  2. +3 −0 lib/heroku/rails/heroku_runner.rb
View
2 .rvmrc
@@ -1 +1 @@
-rvm use 1.8.7@heroku_rails_dev
+rvm use 1.9.2@heroku_rails_dev
View
3 lib/heroku/rails/heroku_runner.rb
@@ -146,6 +146,9 @@ def setup_addons
# get the addons that are already on the servers
existing_addons = (@heroku.installed_addons(app_name) || []).map{|a| a["name"]}
+ # all apps need the shared database
+ addons << "shared-database:5mb" unless addons.index("shared-database:5mb")
+
# add "custom_domains" if that addon doesnt already exist
# and we have domains configured for this app
addons << "custom_domains:basic" unless @config.domains(heroku_env).empty? or

0 comments on commit d73fbed

Please sign in to comment.