2
votes

I am using ember-cli for my current ember project, I start the server using broccoli serve however livereload does not work and I need to refresh the page everytime I make changes. What is the correct way to use livereload with ember-cli and broccoli?

2
does the command line end? or does it keep serving the page? Is it opening a web view for you, or are you opening it yourself? - nycynik
Commandline does not end, it serves the page on localhost:4200. It does not open a web view, I open it myself and everything works on refresh. - quaertym

2 Answers

0
votes

you should use ember server for your ember-cli projects.

0
votes

Live reload should work out of the box from ember-cli. To fix the live reload problem try updating the version of ember-cli.

To use

broccoli serve
broccoli build 

you can do the following:

Install broccoli-cli globally

npm install -g broccoli-cli

Go to the root of your project where you want to run broccoli commands and do the following

npm install --save-dev broccoil 

Then broccoli build & broccoli serve should work for your project according to brocfile.js