-
Notifications
You must be signed in to change notification settings - Fork 7
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
ftl dev --no-serve --stop
goes into a connection loop if the server isn't running
#1167
Comments
@alecthomas what was the use case for using --stop and --no-serve together? The current PR I have just kills the background serve and returns immediately to prevent the wait loop, but I wasn't sure if you had a more proper use case in mind here. Thanks! |
That's exactly what I was trying to achieve yeah. |
…erve) are used (#1325) Fixes #1167 Manually tested: ``` $ ftl dev --stop --no-serve ./examples/go --log-level=trace trace: Loading config from /Users/dli/Development/ftl/ftl-project.toml debug: FTL serve is not running in the background $ ftl serve --background info: `ftl serve` running in background with pid: 42320 $ ftl dev --stop --no-serve ./examples/go --log-level=trace trace: Loading config from /Users/dli/Development/ftl/ftl-project.toml info: `ftl serve` stopped (pid: 42320) ```
The flags are a touch confusing to me. I think I would expect |
Agree it's confusing. I needed some help to make sure I was understanding it correctly. It looks like right now, if |
If the server isn't running it should immediately terminate, possibly with an error.
The text was updated successfully, but these errors were encountered: