angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Watch for file changes when upload

Open jas75 opened this issue 9 years ago • 2 comments

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.3.1 node: 8.4.0 os: darwin x64 @angular/animations: 4.3.3 @angular/common: 4.3.3 @angular/compiler: 4.3.3 @angular/core: 4.3.3 @angular/forms: 4.3.3 @angular/http: 4.3.3 @angular/platform-browser: 4.3.3 @angular/platform-browser-dynamic: 4.3.3 @angular/router: 4.3.3 @angular/cli: 1.3.1 @angular/compiler-cli: 4.3.3 @angular/language-service: 4.3.3

Repro steps.

https://github.com/jas75/Bloggy

The log given by the failure.

A simple GET error 404

Desired functionality.

When i upload a file i want angular to detect the file change without running ng serve

Mention any other details that might be useful.

My problem is that when I upload a file, Angular can detect it only if I run ng serve. I couldn"t file answers for this problem anywhere

jas75 avatar Sep 01 '17 16:09 jas75

I'm sorry but this isn't a Angular CLI bug. Angular CLI is not a production server. You have to architecture your server and client apps to trigger some sort of notification on file upload. Push notifications, polling and sockets are all viable options for this. I recommend searching the internet for options you can use, there are probably libraries that make this easy for your technology stack.

filipesilva avatar Sep 05 '17 09:09 filipesilva

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.