Closed jbmyid closed 6 years ago
no, application should be described fully. in your case, you should create 2 applications.
how about grouping the processes. eg: resque job i want to group but also want to be separate files as it should be flexible to run/add it for particular instance.
Actually we were using god and that was very useful.
you can separate you process descriptions to multiple files, but application should be defined fully as one block. you can add or remove processes from this app, and just recall load
and it would updated (added or removed processes from application would be removed or added). examples: https://github.com/kostya/eye/blob/master/examples/thin-farm.eye, and thin self, port
defined in https://github.com/kostya/eye/blob/master/examples/process_thin.rb
Thanks, i had to go with multi application approach. It would be really great if processes can be added after application loading.
just add process to application config and load config again, process would be added, you just need to have application config somewhere (in your application)
I am trying to create separate eye files per process and trying to load. but last loaded process replaces existing one.
Is there any way to add process in already defined application?