cozy / cozy-dev

Archived - Please use https://github.com/CPatchane/create-cozy-app
http://cozy.io
Other
17 stars 12 forks source link

Status at the end vm start seems broken. #63

Open poupotte opened 9 years ago

poupotte commented 9 years ago

After a vm:start, cozy-dev display status for cozy stack. It happens that some applications (controller/home) are displayed broken whereas they started.

jsilvestre commented 9 years ago

I really don't understand this problem, I tried various things. It appears that for some reasons it's not started yet during the command...but a setTimeout didn't fix it -_- So I let it as-is.

poupotte commented 9 years ago

The problem comes from isStarted function. Indeed, isStarted function checks proxy status. However, controller is accessible only after its autostart. Thus, if home start after proxy, we can have home and controller stopped in status call at the end of start.

poupotte commented 9 years ago

This issue should be fixed.

frankrousseau commented 9 years ago

I updated it yesterday because it fails when the stackapplication request is not created.

frankrousseau commented 9 years ago

I made a quick fix that call the callback when the request returns undefined.