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

Add environment variable configuration of the classtime endpoint #25

Open
rosshamish opened this issue Mar 25, 2015 · 1 comment
Open

Comments

@rosshamish
Copy link
Collaborator

While we're at it, add env variable configuration of the API version too.

GET $CLASSTIME_URI/api/$CLASSTIME_VERSION/generate-schedules?q=...

This will be great for local debugging and also for testing in the staging environments.

@rosshamish
Copy link
Collaborator Author

Since the winston backend is nodejs, process.env will be useful: http://stackoverflow.com/questions/15058954/node-js-is-there-any-documentation-about-the-process-env-variable

There should be sensible defaults, like CLASSTIME_URI=http://classtime.herokuapp.com and CLASSTIME_VERSION=1

This'll be nice for local debugging since we can test with CLASSTIME_URI=http://localhost:5000 or something (while running classtime locally at port 5000).

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

1 participant