In order to build your application to be deployed in the production environment, you will have to run the following command:
ember build --environment="production"
This will build the application for the production environment, and put the resulting files in the
dist directory of your project. In order to build your project in a different location, you can specify the output path using
--output-path flag, to specify the directory where you want to build the project.
Now the contents present in the
dist directory can be deployed, as it is to your application server.
Ember CLI also makes it very easy to deploy your application to Heroku.
To deploy your application to Heroku, run the following command ...