When travis tries to test and deploy from the tracked repository, testing fails because we can't require `secrets.js` in `server/index.js`. Workaround to check if not in testing environment in `server/index.js:` ```javascript /* config keys for development */ if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test') require('../secrets') ```
When travis tries to test and deploy from the tracked repository, testing fails because we can't require
secrets.jsinserver/index.js.Workaround to check if not in testing environment in
server/index.js: