Skip to content

Adds ability to pass in configFile path when loading ghost as a npm module#1818

Merged
ErisDS merged 1 commit intoTryGhost:masterfrom
hswolff:config-file-option
Feb 8, 2014
Merged

Adds ability to pass in configFile path when loading ghost as a npm module#1818
ErisDS merged 1 commit intoTryGhost:masterfrom
hswolff:config-file-option

Conversation

@hswolff
Copy link
Contributor

@hswolff hswolff commented Jan 3, 2014

  • modifies main script file to allow it to
    take in an options object that currently
    supports an express instance or a config file path
  • added tests

@hswolff hswolff mentioned this pull request Jan 30, 2014
9 tasks
@ErisDS
Copy link
Member

ErisDS commented Feb 8, 2014

#1858 is in! Let me know when this one is ready :)

 ghost as a npm module

- modifies main script file to allow it to
take in an options object that currently
supports an express instance or a config file path

- added tests
@hswolff
Copy link
Contributor Author

hswolff commented Feb 8, 2014

Ready!

@hswolff
Copy link
Contributor Author

hswolff commented Feb 8, 2014

So for documentation sake, you can now do this when starting ghost as a module:

var ghost = require('ghost'),
    path  = require('path');

ghost({
  config: path.join(__dirname, 'config.js')
});

ErisDS added a commit that referenced this pull request Feb 8, 2014
Adds ability to pass in configFile path when loading ghost as a npm module
@ErisDS ErisDS merged commit d28d65b into TryGhost:master Feb 8, 2014
@hswolff hswolff deleted the config-file-option branch February 8, 2014 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants