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 in your project's root directory:
heroku create <OPTIONAL_APP_NAME> --buildpack https://github.com/tonycoco/heroku-buildpack-ember-cli.git
After this, you should be able to deploy your application to Herkoku using the usual git
hooks:
git commit -am "Commit to deploy to heroku" --allow-empty git push heroku master
To run any of the commands, you will need a Heroku account and its toolbelt set up on your machine.
18.118.137.67