From f2ad141e32e6fc6e8fdfaaf859232c2ee4b0b16f Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Wed, 19 Sep 2018 01:52:11 +0200 Subject: [PATCH] Switch review apps to postgresql --- app.json | 8 ++------ lib/tasks/cleardb.rake | 10 ---------- 2 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 lib/tasks/cleardb.rake diff --git a/app.json b/app.json index f77f6c9c..9d6acc52 100644 --- a/app.json +++ b/app.json @@ -2,14 +2,13 @@ "name": "osem", "description": "Open Source Event Manager", "env": { - "DEPLOY_TASKS": "db:cleardb_env", "CLOUDINARY_URL": { "description": "Configure your cloudinary.com cloud name and api key/secret", "required": true }, "DATABASE_URL": { "description": "Configure your database connection", - "required": true + "required": false }, "SECRET_KEY_BASE": { "description": "a key which allows sessions to be verified against a known secure key to prevent tampering", @@ -73,15 +72,12 @@ } }, "addons": [ - "cleardb", + "heroku-postgresql", "sendgrid" ], "buildpacks": [ { "url": "heroku/ruby" - }, - { - "url": "https://github.com/gunpowderlabs/buildpack-ruby-rake-deploy-tasks" } ] } diff --git a/lib/tasks/cleardb.rake b/lib/tasks/cleardb.rake deleted file mode 100644 index 7cd9eb73..00000000 --- a/lib/tasks/cleardb.rake +++ /dev/null @@ -1,10 +0,0 @@ -# frozen_string_literal: true - -namespace :db do - desc 'setup DATABASE_URL from CLEARDB_DATABASE_URL in config/database.yml' - task 'cleardb_env' do - unless ENV['CLEARDB_DATABASE_URL'].nil? - FileUtils.copy_file('config/database.yml.heroku', 'config/database.yml') - end - end -end