title: why Ghost node_modules is much larger on openshift than on local?
body: <p>I'using Openshift to deploy my Ghost blog. <b>My whole code package is about 80m (including production node_modules, which is about 24m), mysql file is about 50m. Openshift shows me a warning message that I have used 97% of the total 1GB. How does this happen?</b> If it's normal, I'm willing to upgrade it, but I want to figure out if I have done something wrong.</p>
  
  <p>I check folder size using SSH, <code>du -m --max-depth=1</code> got folder size results of my root folder like this:</p>
  
  <pre><code>1       ./.node-gyp
  1       ./nodejs
  du: cannot read directory `./.ssh': Permission denied
  1       ./.ssh
  du: cannot read directory `./.sandbox': Permission denied
  1       ./.sandbox
  52      ./mysql
  1       ./.gem
  1       ./.openshift_ssh
  1       ./.auth
  1       ./phpmyadmin
  58      ./git
  334     ./app-root
  du: cannot read directory `./.tmp': Permission denied
  1       ./.tmp
  1       ./.env
  325     ./app-deployments
  768     .
  </code></pre>
  
  <p><b>Does app-deployments save one previous version of app-root?</b> I found a folder with commit date as folder name. </p>
  
  <p>Then for app-root folder:</p>
  
  <pre><code>4       ./logs
  5       ./data
  325     ./runtime
  334     .
  </code></pre>
  
  <p>For runtime folder:</p>
  
  <pre><code>140     ./dependencies
  1       ./build-dependencies
  186     ./repo
  325     .
  </code></pre>
  
  <p>For repo folder:</p>
  
  <pre><code>1       ./.openshift
  7       ./core
  5       ./content
  175     ./node_modules
  186     .
  </code></pre>
  
  <p>for dependencies folder, <b>what is dependencies folder used for? </b></p>
  
  <pre><code>1       ./nodejs
  140     ./.npm
  140     .
  </code></pre>
  
  <p>Is the npm folder the global folder for npm? <b>when I have node_modules in my project, why it still install it to glocal? Can I change it?</b></p>
  
  <p>Then in node_modules, I saw <code>bower</code> module which is defined in <code>devDependencies</code> in package.json. </p>
  
  <p><b>I set env var for openshift to be production, why everything in devDependencies still in there?</b></p>
  
  <p>NODE_ENV=production
  NPM_CONFIG_PRODUCTION=true</p>
  
  <p><b>How can I remove those extra modules and save some disk space?</b></p>