Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Configuration Options #31

Open
damoclark opened this issue Sep 30, 2016 · 2 comments
Open

Server Configuration Options #31

damoclark opened this issue Sep 30, 2016 · 2 comments

Comments

@damoclark
Copy link
Owner

A future feature

The server needs to be configurable at start up.

Conventional methods to do this include

  • Command line args
  • Configuration file
  • Environment Variables

In all likelihood, there will be an npm module that will cater to this, perhaps even all of them, and in a OS-independent way, for the Windows folk.

I'll add a separate issue for configurable options necessary.

@nick2170
Copy link
Collaborator

I think we can accomplish this easily with node:
https://nodejs.org/docs/latest/api/process.html#process_process_argv

use process.argv to access the command line options.

@damoclark
Copy link
Owner Author

@nick2170 How about something like this?

envar

Covers all 3 methods in one abstract library.

Gives great flexibility and simplicity.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants