title: sails.js Is it possible to set process.env variables from application?
body: <p>I am trying to use <code>npm</code> module fb to use facebook api. The config file is located in the module and here is the snapshot of the same</p>
  
  <pre><code>var config = { };
  
  // should end in /
  config.rootUrl  = process.env.ROOT_URL                  || 'http://localhost:3000/';
  
  
  config.facebook = {
      appId:          process.env.FACEBOOK_APPID          || '130243393813697',
      appSecret:      process.env.FACEBOOK_APPSECRET      || 'c82696768ae4ad8b63db874cb64eb558',
      appNamespace:   process.env.FACEBOOK_APPNAMESPACE   || 'nodescrumptious',
      redirectUri:    process.env.FACEBOOK_REDIRECTURI    ||  config.rootUrl + 'login/callback'
  };
  
  module.exports = config;
  </code></pre>
  
  <p>I don't wish to change the config file of the module since <code>node_modules</code> folder is kept in the <code>gitignore</code> list. For configuring the module to use my app's <code>appId</code> and <code>appSecret</code>, I need to set the <code>process.env</code> variables <code>FACEBOOK_APPID</code> and <code>FACEBOOK_APPSECRET</code></p>
  
  <p>I understand that it can be done while calling the sails lift but is it by any means possible to set these values inside the app so that I only have to call</p>
  
  <p>sails lift </p>
  
  <p>without any of those variables and those should be set automatically ? Or what is the best way to achieve what I am trying to do here ?</p>