-
Notifications
You must be signed in to change notification settings - Fork 1
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
App refactoring #89
App refactoring #89
Conversation
gregdel
commented
Jan 6, 2016
- Move the app parts in internal packages and sub applications
- Use log entries everywhere
- handle sighup events to reload the app
- graceful shutdown of all the sub applications
0b72658
to
b262be0
Compare
+1 |
Try to fix the fake increase of coverage before merge this |
b262be0
to
18ec41b
Compare
56a4a55
to
ece070d
Compare
|
||
a.startApps(log) | ||
|
||
log.Info("app reloaded") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reloaded but which one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the main app
see here for the subapps: https://github.com/odwrtw/polochon/blob/appRefactoring/app/internal/app/app.go#L213
fc4c4b1
to
450bad7
Compare
* Use log entries everywhere * Handle app reload with SIGHUP * Move all the apps into sub apps * Each sub app is launched by the main app * Available sub apps: * http server * organizer * downloader * cleaner
450bad7
to
22b66ff
Compare