-
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
project
dependency
#21
Comments
Since I would expect there to be logs and output when initially running the service, but no output + control returned to the user when the service is up and running successfully, but I wouldn't expect |
The But if I say "project A depends on project B", do you read that as:
or
I suppose "depending" on a "project" could mean a dependency as in using a library or a dependency as in integrating with a service. Is there a word other than
It is an active decision on a user's part to use the
So instead of calling actions, there could be a builtin that was run in the other project, like:
which might wrap the project's normal
It makes sense for the process to be started in the background, as long as the service started successfully, but otherwise you'd see error output on your terminal. |
Both; "Project A depends on Project B" reads like Project A needs all of Project B's dependency's and needs Project B to be running sometimes. Re:
|
I thought the same, which is why I thought it would communicate to the user that the projects listed there would be started, in addition to having their dependencies installed. Hence, I think that it would be somewhat natural for To me, |
Sometimes one repo needs a service defined in another repo to be running in order to run itself. E.g. there is an app and a monitoring system; the app needs to send data to the monitoring system (or, at least, a developer should be able to test this).
With a dependency like this defined in the app's
ops.yml
:ops up
should try to start the service in the given project directory (monitoring
). Themonitoring
project must have anops.yml
file as well, that supports the following actions:Because these are not
ops
builtins,ops
will need to be able to provide a helpful message in the case that the other project has not defined these actions.Some consideration must be given to how to invoke these other actions, and whether they must, by themselves, run in the background. E.g. perhaps
ops start
runs a server in the foreground, so that a developer can see the log output.ops
runstart
in a background process, or dictate that theops start
action must start a service and return?ops
use an action other thanstart
, so that the action used to start projects does not conflict with a commonly-used action name?ops
use a builtin to handle this, e.g.ops service start
that will runops start
in the background?ops
make the logs of backgrounded services available to developers via commands likeops logs
, or rely on the app to write its own logs?The text was updated successfully, but these errors were encountered: