title: Deploying python site to production server
body: <p>I have django website in testing server and i am confused with how should the deployement procedure goes.</p>
  
  <p>Locally i have these folders</p>
  
  <pre><code>code
  virtualenv
  static
  static/app/bower_components
  node_modules
  </code></pre>
  
  <p>Current on git i only have code folder in there.</p>
  
  <p>My Initial thought was to do this on production server</p>
  
  <pre><code>git clone repo
  pip install
  npm install 
  bower install
  colectstatic
  </code></pre>
  
  <p>But i had this problem that sometimes some components in <code>pip or npm or bowel</code> fail to install and then production deployemnet fails.</p>
  
  <p>I was thinking of put everything in static, bower, npm etc inside git so that i can fetch all in prodcution.</p>
  
  <p>Is that the right way to do. i want to know the right way to tackle that problem</p>