ghost_database_url
v0.2.0
Published
Configure your ghost database using DATABASE_URL
Downloads
2
Readme
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.