Hands-on deployment

Since we're using the MEAN.JS generator, we have a file available in the application root folder named .travis.yml. We can use it for the initial setup on Shippable; however, we will create a new file.

Tip

Travis is another tool for continuous integration in open source projects, which is directly integrated with GitHub. More information is available at http://docs.travis-ci.com/.

To create the file, follow these steps:

  1. Open the project and add a new file in the root folder named .shippable.yml.
  2. Paste the following code and save the file:
    language: node_jsnode_js:
      - "0.10"
    env:
      - NODE_ENV=travis
    services:
      - mongodb
    after_success:- git push git@heroku.com:<some name>.git master

    The last command in this file, after_success, receives ...

Get Learning Single-page Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.