mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Switch review apps to postgresql
This commit is contained in:
parent
f8b7233404
commit
f2ad141e32
2 changed files with 2 additions and 16 deletions
8
app.json
8
app.json
|
|
@ -2,14 +2,13 @@
|
||||||
"name": "osem",
|
"name": "osem",
|
||||||
"description": "Open Source Event Manager",
|
"description": "Open Source Event Manager",
|
||||||
"env": {
|
"env": {
|
||||||
"DEPLOY_TASKS": "db:cleardb_env",
|
|
||||||
"CLOUDINARY_URL": {
|
"CLOUDINARY_URL": {
|
||||||
"description": "Configure your cloudinary.com cloud name and api key/secret",
|
"description": "Configure your cloudinary.com cloud name and api key/secret",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
"DATABASE_URL": {
|
"DATABASE_URL": {
|
||||||
"description": "Configure your database connection",
|
"description": "Configure your database connection",
|
||||||
"required": true
|
"required": false
|
||||||
},
|
},
|
||||||
"SECRET_KEY_BASE": {
|
"SECRET_KEY_BASE": {
|
||||||
"description": "a key which allows sessions to be verified against a known secure key to prevent tampering",
|
"description": "a key which allows sessions to be verified against a known secure key to prevent tampering",
|
||||||
|
|
@ -73,15 +72,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"addons": [
|
"addons": [
|
||||||
"cleardb",
|
"heroku-postgresql",
|
||||||
"sendgrid"
|
"sendgrid"
|
||||||
],
|
],
|
||||||
"buildpacks": [
|
"buildpacks": [
|
||||||
{
|
{
|
||||||
"url": "heroku/ruby"
|
"url": "heroku/ruby"
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://github.com/gunpowderlabs/buildpack-ruby-rake-deploy-tasks"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue