bookshelf-rest-api
Version:
Quickly build a rest API with little to no thought if you're using Bookshelf.js for your models
15 lines (12 loc) • 403 B
JavaScript
/*
* Copyright (c) 2018. Brightley Developed -- www.brightleydeveloped.com
*/
const production = process.env.NODE_ENV === "production";
const config = {};
config.production = production;
config.database = {};
config.database.postgres = process.env.DATABASE_URL || "postgres://local:password@localhost:5432/local";
if(production) {
config.database.postgres += "?ssl=true"
}
module.exports = config;