Switch review apps to postgresql

This commit is contained in:
Henne Vogelsang 2018-09-19 01:52:11 +02:00 committed by James Mason
parent f8b7233404
commit f2ad141e32
2 changed files with 2 additions and 16 deletions

View file

@ -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"
}
]
}

View file

@ -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