Skip to content
This repository was archived by the owner on Feb 19, 2022. It is now read-only.

Conversation

@bmathews
Copy link
Contributor

@bmathews bmathews commented Aug 1, 2016

No description provided.

var SERVER_HOST = "127.0.0.1";
var SERVER_PORT = "3000";
var DEV_SERVER_TIMEOUT = 20000;
var DEV_SERVER_TIMEOUT = process.env.TEST_FUNC_DEV_SERVER_TIMEOUT || 20000;
Copy link
Member

Choose a reason for hiding this comment

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

GLOBAL: Prefer npm config style variables that can be overridden either by env or by package.json:config

See https://github.com/FormidableLabs/builder#npm-config

The result would be something (and sorry it's long) like:

var DEV_SERVER_TIMEOUT = process.env.npm_package_config_test_func_dev_server_timeout || 20000;

@bmathews
Copy link
Contributor Author

@ryan-roemer Updated all the configuration to take advantage of npm config. Thanks for all the feedback!

port: SERVER_PORT,
path: BASE_DIR + "/"
}, function () {
cb();
Copy link
Member

Choose a reason for hiding this comment

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

Should we capture / respond to errors here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@rawrmonstar rawrmonstar removed their assignment Oct 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants