Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into testing-heroku-review-apps
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbaptista committed Apr 1, 2016
2 parents fd62b9a + 4dd6b1d commit 7017683
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
"postdeploy": "npm run migrate && npm run seed && npm run reindex"
},
"env": {
"ELASTICSEARCH_URL": {
"required": true
},
"DATABASE_URL": {
"required": true
}
},
"addons": [
"heroku-postgresql",
Expand Down
6 changes: 6 additions & 0 deletions config/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
require('dotenv').config();

if (!process.env.ELASTICSEARCH_URL) {
// Fallback to SEARCHBOX_URL if ELASTICSEARCH_URL isn't set.
process.env.ELASTICSEARCH_URL = process.env.SEARCHBOX_SSL_URL;
}

const elasticsearch = require('elasticsearch');
const path = require('path');
const config = {
Expand Down

0 comments on commit 7017683

Please sign in to comment.