ghost_database_url

0.2.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i ghost_database_url

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • razzi