title: "Error: Configuration property is not defined" on `heroku local web` - Config / Heroku
body: <p>I am trying to setup locally an existing Heroku app. To do so, I <code>git cloned</code> the app from our repo in Github. Then I added the <code>git remote</code> for heroku.</p>
  <p>Normally, builds to the server happen with <code>Travis CI</code>, but now I want to run the app locally straight from <code>heroku</code>.</p>
  <p><code>heroku config</code> returns the config variables just fine.</p>
  <p>But <code>heroku local web</code> returns the error</p>
  <blockquote>
  <p>throw new Error('Configuration property &quot;' + property + '&quot; is not defined');</p>
  <p>Error: Configuration property &quot;redis.url&quot; is not defined</p>
  </blockquote>
  <p><strong>redis.js</strong></p>
  <pre><code>import config from 'config';
  const redis = new Redis(config.get('redis.url'), {
    keyPrefix: 'kw:',
  });
  </code></pre>
  <p>The <code>config</code> folder is in the root of my repo.</p>
  <p><strong>config/default.js</strong></p>
  <pre><code>import dotenv from 'dotenv';
  
  dotenv.config({ silent: true });
  
  module.exports = {
    ...,
    redis: {
      url: process.env.REDIS_URL || process.env.REDISCLOUD_URL,
    },
    ...
  }
  </code></pre>
  <p>Relevant scripts in <strong>package.js</strong></p>
  <pre><code>    &quot;start:server&quot;: &quot;./node_modules/.bin/babel-node src/server.js&quot;,
      &quot;start:worker&quot;: &quot;./node_modules/.bin/babel-node src/worker/worker.js&quot;,
      &quot;start&quot;: &quot;./node_modules/.bin/nf start&quot;,
  </code></pre>
  <p>If I run <code>npm run start:server</code> I get the same error.</p>
  <p>If I comment out the <code>redis.url</code> code I get the same error but for another variable in the <code>config</code>.</p>
  <p>What am I missing? Let me know if you require clarification.</p>