title: Set node version for non node web role
body: <p>i have written an SPA which uses Grunt tasks to build itself from the source code into a <code>dist</code> directory.</p>
  
  <p>I want to host this on azure to keep everything in one PaaS.</p>
  
  <p>If i send the prebuilt <code>dist</code> folder to azure and add a .deploments task to move it into the <code>DEPLOYMENT_TARGET</code> folder everything works fine. However i want to just keep source code in GitHub and have the application built at deployment time using the existing Grunt tasks.</p>
  
  <p>I have added a .deployment file with the following command</p>
  
  <pre><code>[config]
  command = npm install
  </code></pre>
  
  <p>Which sucessfully triggers my npm install, and then the post install script</p>
  
  <pre><code>"scripts": {
      "postinstall": "node node_modules/grunt-cli/bin/grunt build"
  },
  </code></pre>
  
  <p>which will use the local copy of grunt-cli (i don't like this but it works), however i get an error because the version of node being used is 0.6.20 and Grunt requires greater than 0.8</p>
  
  <p>I have set my engine param in the package.json</p>
  
  <pre><code>"engines": {
      "node": "&gt;= 0.8.4"
  },
  </code></pre>
  
  <p>But no luck :(</p>
  
  <p>I have a feeling that the engine param is ignored because a <code>node</code> application is not being found. Which is correct as i want azure to serve my files for me without using a node http server.</p>
  
  <p>Is there a way to target another Node binary or specifically set the version of node for my website even if it is not "using" node as it were?</p>
  
  <p>Any help greatly appreciated</p>