Deployment

After creating your application you'll need to be able to deploy it. Let's take a look at a few ways to deploy your application.

How to do it...

  1. The first fundamental step before deployment is building your project. To build your application, run the build command:
    $ ember build
    
  2. This command builds the contents of the project in the /dist folder. To build your project for production, you'll need to use the -prod argument:
    $ ember build -prod
    
  3. If you need, you can designate the default output folder:
    $ ember build –prod –o<directory>
    

Building your application for production will automatically minify your files as well as fingerprint them. This does not occur when your environment is set up for development, which is set by default.

The

Get Ember.js Cookbook 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.