title: Setting up process.env variables using EXPORT while running node with sudo
body: <p>I'm using node.js on EC2</p>
  
  <p>I type </p>
  
  <pre><code>EXPORT PORT=80
  </code></pre>
  
  <p>in terminal, and i see that it correctly saves it when i type EXPORT</p>
  
  <p>But when I run my node.js app with the following:</p>
  
  <pre><code>...
  console.log(process.env);
  ...
  </code></pre>
  
  <p>PORT is not listed in the object when I'm running it with sudo:</p>
  
  <pre><code>sudo node app.js
  </code></pre>
  
  <p>How do I set PORT so that I can access it from the process.env object while running node with sudo?</p>