envone / ember-runner

EmberJS preview and build tool for Node.JS
MIT License
50 stars 6 forks source link

Updated files are not added back to the build when running the peview server. #20

Open rvega opened 12 years ago

rvega commented 12 years ago

Here's what happens when I update a file while running the preview server:

ember-runner [0.1.17] Running in preview mode.
[REMOVED] /home/rafaelvega/Projects/Sicor/repo/client/apps/Sicor/js/Controllers/Application.js
[ADDED] /home/rafaelvega/Projects/Sicor/repo/client/apps/Sicor/js/Controllers/Application.js~
[HOT DEPLOY] [Sicor] Rebuilt scripts
[REMOVED] /home/rafaelvega/Projects/Sicor/repo/client/apps/Sicor/js/Controllers/Application.js~

Notice the file Application.js is not added again after updating. I have to restart the preview server everytime to force the updated files to included in the build.

Note: I don't think my editor is creating the files ending with ~. I use vim and I have the directory configuration set so that temp files are stored on /tmp

rvega commented 12 years ago

Nevermind about the ~ files, they were afterall created by vim. (set backupdir=~/tmp workaround for now). However, I have the same issue with the preview server:

ember-runner [0.1.17] Running in preview mode.
[REMOVED] /home/rafaelvega/Projects/Sicor/repo/client/apps/Sicor/templates/navigation-view.handlebars
[HOT DEPLOY] [Sicor] Rebuilt templates
juan77 commented 12 years ago

Hi, I will add a filter for files that finish ~, for the other case, ember-runner never removes files itself (only thse that are inside public/apps and public/vendors), so this mean that you removed the file navigation-view.handlebars and... in server exists anyway?? meaning that isn’t removed from publish?? Can you explain me more, thx