title: circleci won't finish build on successful server startup
body: <p>I have setup circleCI, AWS CodeDeploy and EC2 to work together so that after I push code to git, it relays to circleCI and then EC2 and starts a server there.</p>
  
  <p>Everything is working fine except the server is running correctly and circleCI won't give me a successful build status.  It is always in "running" state</p>
  
  <p>appspec.yml</p>
  
  <pre><code>version: 0.0
  os: linux
  files:
    - source: /
      destination: /home/ubuntu
  permissions:
    - object: /home/ubuntu/scripts
      pattern: "**"
      mode: 777
      type:
        - file
  hooks:
    ApplicationStart:
      - location: scripts/start.sh
        timeout: 3800
  </code></pre>
  
  <p>start.sh</p>
  
  <pre><code>#!/bin/bash
  node server.js
  </code></pre>
  
  <p>anyone know how to solve this?</p>