Skip to content

Commit

Permalink
Fixed channel path to work with Ghost-CLI
Browse files Browse the repository at this point in the history
- Just, DERP 🙈
  • Loading branch information
ErisDS committed Nov 10, 2017
1 parent a63ce07 commit 1445678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/server/services/channels/loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var debug = require('ghost-ignition').debug('channels:loader'),
_ = require('lodash'),
path = require('path'),
Channel = require('./Channel'),
channels = [];

Expand All @@ -10,7 +11,7 @@ function loadConfig() {
// If you are reading this code, and considering using it, best reach out to us on Slack
// Definitely don't be angry at us if the structure of the JSON changes or this goes away.
try {
channelConfig = require('../../../../config.channels.json');
channelConfig = require(path.join(process.cwd(), 'config.channels.json'));
} catch (err) {
channelConfig = require('./config.channels.json');
}
Expand Down

1 comment on commit 1445678

@acburdine
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😁

Please sign in to comment.