2

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?

quaertym
  • 3,917
  • 2
  • 29
  • 41
  • 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 May 11 '14 at 15:00
  • 1
    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 May 12 '14 at 11:59

2 Answers2

0

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

Craicerjack
  • 6,203
  • 2
  • 31
  • 39
  • 1
    I'm using "ember server" but the live reload doesn't work. I simply go to the application template change the

    content and nothing happens :(

    – Denzo Jun 17 '14 at 10:37
  • @Denzo you should probably open up a new question for this or go check out the issues on ember-cli. – Craicerjack Jun 17 '14 at 11:00
  • @Denzo Did you figure out in the end what the problem was with the live-reload? – Timo Aug 22 '14 at 01:40
  • Looking around and in this issue, http://stackoverflow.com/questions/25439380/live-reload-not-working-with-ember-cli, it was a problem with node and npm that was causing the problems. – Craicerjack Aug 22 '14 at 07:52
0

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

Kavit Shah
  • 495
  • 1
  • 5
  • 11