0.2.0 • Published 11 years ago
ghost_database_url v0.2.0
This is a simple utility that parses a DATABASE_URL environment variable (such as those supplied by Heroku) and returns a configuration object that can be passed to Ghost's config.js.
Example usage:
var ghost_database_url = require('ghost_database_url');
database_config = ghost_database_url.config();Within a Ghost config.js:
var ghost_database_url = require('ghost_database_url'),
config;
config = {
production: {
database: ghost_database_url.config(),
},
...
}Inspired by dj_database_url.