linemanjs / lineman-angular-template

A Lineman Application Template using AngularJS
251 stars 88 forks source link

Need to stop and run again server #4

Closed sarath2 closed 11 years ago

sarath2 commented 11 years ago

When I done some modification or create new controller, It is need to re-run the server(lineman run). Otherwise given "NetworkError: 404 Not Found - http://localhost:8000/angular/home.html"

davemo commented 11 years ago

Hi @sarath2, I'm having a hard time understanding exactly what you want to do. If you make changes to existing files inside the app directory you shouldn't have to restart the server. The URL you are trying to access doesn't seem like it would be valid though; by default the lineman-angular-template does not configure $locationProvider to work with HTML5 Mode, so your url should probably have a # in it like http://localhost:8000/#/name-of-route

Do you have a link to your repository so I can look at how you have things configured?

sarath2 commented 11 years ago

I never done more thing. Only modified HomeController. Added some changes to the $scope.message ="aaaa"; Firebug given above error! .Other stuff same as your repository.

davemo commented 11 years ago

When you open the app in your browser, point it to http://localhost:8000/ to start. Lineman serves things out of the generated directory, but lineman-angular-template only comes with a single page to serve generated/index.html

sarath2 commented 11 years ago

In my url seem http://localhost:8000/#/login working well. I changed $scope.message = "Mouse Over these images to see a directive at work1"; Only added 1 to the message and save, refresh browser.It given error. Re run the server working well. You mean, is it need re-run every time when we amend the controller?

davemo commented 11 years ago

Ah I just ran into this problem, it looks like an issue with the concat target in Lineman. I'll post a fix shortly :)

sarath2 commented 11 years ago

Good. Thanks for your greatest library. I'll trying to do get and post data from API using Restangular and your building tool.

davemo commented 11 years ago

Just pushed a fix for this, you'll want to pull in the changes in https://github.com/davemo/lineman-angular-template/commit/f88cdf060f49b7766aac5cea15a3cb93de795481 and put them into your config/application.js, let me know if this fixes for you :)

sarath2 commented 11 years ago

Great! Now working well.

davemo commented 11 years ago

Awesome! Sorry for the hiccups :)