moizKachwala / Angular2-express-mongoose-gulp-node-typescript

AngularJS 2 (Updated to 4.2.0) Mean Stack application which uses Angular2, Gulp, Express, Node, MongoDB (Mongoose) with Repository Pattern Business Layer
MIT License
196 stars 86 forks source link

Infinite restart after saving a file #12

Closed zonkil closed 8 years ago

zonkil commented 8 years ago

After saving file and compile, nodemon go wild, restarting app all over again

image

esuarezz commented 8 years ago

Check the task you are executing just there is watching not watching + run

2016-09-14 20:26 GMT+01:00 zonkil notifications@github.com:

After saving file and compile, nodemon go wild, restarting app all over again

[image: image] https://cloud.githubusercontent.com/assets/14218072/18526616/8afb2576-7ac1-11e6-88db-599eea2dab46.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/moizKachwala/Angular2-express-mongoose-gulp-node-typescript/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/AKU3imEqqmGuY1jvrEraix3EY7ns464Eks5qqEpsgaJpZM4J9JaB .

zonkil commented 8 years ago

I am executing: npm run deploy which execute "deploy": "concurrent --kill-others \"gulp watch\" \"gulp start\""

esuarezz commented 8 years ago

if you want to deploy , I guess you dont need watch, just start ;) so remove watch from there.

Usually gulp makes problems if you try to watch + start, they disturb each other :P let me know if u solve it :dancer:

2016-09-14 20:37 GMT+01:00 zonkil notifications@github.com:

I am executing: npm run deploy which execute "deploy": "concurrent --kill-others \"gulp watch\" \"gulp start\""

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/moizKachwala/Angular2-express-mongoose-gulp-node-typescript/issues/12#issuecomment-247129138, or mute the thread https://github.com/notifications/unsubscribe-auth/AKU3iu30kr_U9MAsR4haqz30x0mtAFZ0ks5qqEzhgaJpZM4J9JaB .

zonkil commented 8 years ago

If it should be removed why is it in package.json?

I haven't change anything, just downloded project and run as said in instruction.

esuarezz commented 8 years ago

you have to remove or start or watch, do that if you want to fix it. I think you need to get the concept of open source, this is a project not released to work in a company.. of course many things could be improved and fixable

2016-09-14 21:06 GMT+01:00 zonkil notifications@github.com:

If it should be removed why is it in package.json?

I haven't change anything, just downloded project and run as said in instruction.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/moizKachwala/Angular2-express-mongoose-gulp-node-typescript/issues/12#issuecomment-247136913, or mute the thread https://github.com/notifications/unsubscribe-auth/AKU3ioIAG4wVUdvH4-bXdb-E7p7zLlnkks5qqFOxgaJpZM4J9JaB .

esuarezz commented 8 years ago

Check how it is build for example the task "default"

zonkil commented 8 years ago

I thought that it was make that way to automatic compile and restart. But it dosent work. If I start "default" or "start" it always is in infinite loop. If I only start "watch" I have to manualy restart.

And what concept of open source has to do with it? I found some issue and I am letting you know about it. You can just ignore it or do what ever you want.

moizKachwala commented 8 years ago

I have also faced the same issue and I am looking into this.

zonkil commented 8 years ago

I'm pretty new in all JS stuff, but removing tasks: ['tslint'] from nodemon params helped (in some way, nodemon still restarting few times). watch execute tslint so start don't have to, I think.

moizKachwala commented 8 years ago

Yes, something wrong in watch and tslint. I notify when its fixed

moizKachwala commented 8 years ago

fixed