0.2.0 • Published 9 years ago

ghost_database_url v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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.

0.2.0

9 years ago

0.1.0

9 years ago