title: Passing Environmental Variables into sh in Procfile
body: <p>I have a Procfile containing:</p>
  
  <pre><code>someprocess: sh -c 'cd /Users/someuser/path/to/sinatra/app &amp;&amp; rackup -p 4567'
  </code></pre>
  
  <p>I need to break this path out so that it is configured via an environmental variable. So I've added this path to my environmental variables stored in a .env file:</p>
  
  <pre><code>SOME_DIR=/Users/someuser/path/to/sinatra/app
  </code></pre>
  
  <p>and I tell foreman to load these envs when I run it:</p>
  
  <pre><code>$ foreman start -f Procfile.dev -e .env
  </code></pre>
  
  <p>However, this causes an error as this environmental variable is not available inside the shell command:</p>
  
  <pre><code>someprocess: sh -c SOME_DIR &amp;&amp; rackup -p 4567'
  </code></pre>
  
  <p>Produces an error:</p>
  
  <pre><code>sh: line 0: cd: SOME_DIR: No such file or directory
  </code></pre>
  
  <p><strong>So how can I pass the environmental variables into the shell command?</strong></p>