Book Image

Learning Single-page Web Application Development

Book Image

Learning Single-page Web Application Development

Overview of this book

Table of Contents (15 chapters)
Learning Single-page Web Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 [email protected]:<some name>.git master

    The last command in this file, after_success, receives the Git Heroku URL that was copied in step 7 of the Setting up a Heroku account section. After all the commands have run successfully, this line confirms the automatic deployment. However, one last action is required, that is, adding another...