title: Failed to build and deploy node.js project with Travis-ci - No Rakefile found
body: <p>I am trying to build a <code>node.js</code> project in travis-ci. this is my <code>.travis.yml</code> file:</p>
  
  <pre><code>language: node_js
  node_js:
    - 0.8
  
  after_script:
    # Install the Heroku package (or the Heroku toolbelt)
    - npm install heroku
    # Add your Heroku git repo:
    - git remote add heroku git@heroku.com:*****.git
    # Add your Heroku API key:
    - export HEROKU_API_KEY=KEYHERE
    # Turn off warnings about SSH keys:
    - echo "Host heroku.com" &gt;&gt; ~/.ssh/config
    - echo "   StrictHostKeyChecking no" &gt;&gt; ~/.ssh/config
    - echo "   CheckHostIP no" &gt;&gt; ~/.ssh/config
    - echo "   UserKnownHostsFile=/dev/null" &gt;&gt; ~/.ssh/config
    # Clear your current Heroku SSH keys:
    - heroku keys:clear
    # Add a new SSH key to Heroku
    - yes | heroku keys:add
    # Push to Heroku!
    - yes | git push heroku master
  </code></pre>
  
  <p>I get the following build error right on the beginning:</p>
  
  <blockquote>
    <p>No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
    Rakefile.rb)</p>
  </blockquote>
  
  <p>Probably because there's something wrong with my yml file and it tries to use the default ruby builder.</p>
  
  <p>I don't think the file is not valid yml file as I have checked it with yml validator at <a href="http://yamllint.com/" rel="nofollow">http://yamllint.com/</a></p>
  
  <p>Something wrong with my Travis specific conf ?</p>
  
  <p>My <code>package.json</code> looks like this :</p>
  
  <pre><code>{
    "name": "csnc",
    "description": "csnc",
    "version": "0.0.1",
    "private": true,
    "dependencies": {
      "express": "3.x",
      "ejs": "&gt;=0.0.0",
      "express-partials": "&gt;=0.0.0"
    },
    "engines": {
      "node": "0.8.x",
      "npm": "1.1.x"
    }
  }
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>If you are looking for a way to automatically deploy node.js app to Heroku using Travis-CI, look for the answer I included for a working <code>.travis.yml</code> file</p>