alexyoung / ircd.js

A Node ircd (IRC daemon)
GNU General Public License v3.0
528 stars 90 forks source link

load config file somewhere else (project root or by parameter?) #79

Closed GabLeRoux closed 10 years ago

GabLeRoux commented 10 years ago

I'm working on some kind of dashboard and I want it to autostart ircd.js when launching the dashboard. I couldn't find a way to pass a config file when launching ircdjs from another node script (and I want to version that config file on the project; this is going to be a local irc server for a weekend event).

It'd be nice to have a way to load a local file in LoadConfig function, ex:

path.join('ircdjs-config.json'),

Or is there a way to pass a config file by parameter?

sespindola commented 10 years ago

Hi, You can pass a config file from the CLI with the "-f" parameter, as shown when you run ircd.js with the "-h" parameter.

I'm closing this pull request. Thanks for taking the time to submit anyway and the best of luck
with your event.

Sebastian.

GabLeRoux commented 10 years ago

Oh thanks, I don't know how I missed this, my bad. :+1: