language: node_js
node_js:
  - 0.10
before_script:
  - bower install
deploy:
   provider: heroku
   api_key:
     secure: bNRd9ba3QLhBfSbxMBb1chOZ0EogBbiGTjDP+R44BdwXkZSlu/2w5Jg4w/VGzG82IfZLYHDjCFCMJflQQlmCSE0/IStq3P+y/yu/4DIVY5GNLfTE6EUxF66YMsv0HorG8OMg6KR/e2USbCI1bZpT/SwJ0XOYD1LCCkvreJr8U+A=
   strategy: git
   app: javiercejudo
   on:
     repo: javiercejudo/javiercejudo.com
after_deploy:
   - ls -la
   - chmod a+x after_deploy.sh
   - ./after_deploy.sh
   - ls -la

language: node_js
node_js:
  - 0.10
before_script:
  - bower install
deploy:
   provider: heroku
   api_key:
     secure: bNRd9ba3QLhBfSbxMBb1chOZ0EogBbiGTjDP+R44BdwXkZSlu/2w5Jg4w/VGzG82IfZLYHDjCFCMJflQQlmCSE0/IStq3P+y/yu/4DIVY5GNLfTE6EUxF66YMsv0HorG8OMg6KR/e2USbCI1bZpT/SwJ0XOYD1LCCkvreJr8U+A=
   strategy: git
   app: javiercejudo
   on:
     repo: javiercejudo/javiercejudo.com
   run:
     - chmod a+x after_deploy.sh
     - ./after_deploy.sh

Move deploy commands to run block
Move deploy commands to run block
