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

Travis environment variable #60

Open
jema28 opened this issue Sep 16, 2018 · 1 comment
Open

Travis environment variable #60

jema28 opened this issue Sep 16, 2018 · 1 comment

Comments

@jema28
Copy link

jema28 commented Sep 16, 2018

What's happening in these three lines? https://github.com/fac-14/Vent-Bot/blob/master/src/controllers/routes/message.js#L1-L3

@jema28 jema28 changed the title Travis Environment Variable Travis environment variable Sep 16, 2018
@developess
Copy link
Collaborator

Basically, we need to require env2 and specify the config file when running locally, but we don't want that happening in travis or in production (environment variables are set in other ways for them) so we have the environment variable TRAVIS on heroku and travis so that code doesn't run in production. We could have done the opposite logic which might have made more sense.

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

3 participants