Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes Not Updating in Development Mode #21

Closed
uipoet opened this issue Mar 29, 2012 · 6 comments
Closed

Changes Not Updating in Development Mode #21

uipoet opened this issue Mar 29, 2012 · 6 comments

Comments

@uipoet
Copy link

uipoet commented Mar 29, 2012

In development mode, without restarting Derby, changes made to any .js or .html file do not display in the browser. Changes to .styl files seem to work as expected.

I have in my .bash_profile: export NODE_ENV=development and Starting cluster with 1 workers in development mode in my console after starting Derby.

I am using the latest Derby: 0.1.10 on port 8080 and browsing with latest production Chrome.

@nateps
Copy link
Contributor

nateps commented Apr 3, 2012

Interesting. Are you seeing anything logged to your console when you save a .html or .js file? When you save a .html file, a big packet should be written out with all the new templates in it. When you save a .js file, the server should automatically restart.

What OS and version of Node are you running?

@uipoet
Copy link
Author

uipoet commented Apr 3, 2012

Nothing is being logged to my console after saving a .html or .js file. Something else: Without defining NODE_ENV=development in my .bash_profile, Derby outputs: Starting cluster with 1 workers in undefined mode. I expected it to default to development.

Mac OS X 10.7.3 and Node.js 0.6.14.

@nateps
Copy link
Contributor

nateps commented Apr 3, 2012

Are you using the default directory structure? The watch code only looks in the root directory of your project.

On line 128 of derby/lib/files.js, try logging the value of dir and type. Do you see the root directory of your project being logged as dir?

@uipoet
Copy link
Author

uipoet commented Apr 4, 2012

Ok, then this is caused on my end. I am religiously opposed to abbreviations and renamed every instance of app to application. I'm ok closing this issue as user error, though would prefer to have the watch code be configurable somehow.

@uipoet
Copy link
Author

uipoet commented Apr 15, 2012

I still had issues until 0.3.0. I'm happy to report all works now as expected.

@uipoet uipoet closed this as completed Apr 15, 2012
@nateps
Copy link
Contributor

nateps commented Apr 15, 2012

Sweet! Glad it got fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants