SDKs superflows run (any language)
superflows run (any language)
For C++, Java, Go, Rust or anything else: superflows run supervises the process and reports for it. No code change.
Use
bash
1superflows run --service matching-engine --lang cpp -- ./build/matching_engine --port 9000
Flags
| Flag | Meaning |
|---|---|
--service | Service name (default: SUPERFLOWS_SERVICE, else the folder name). |
--env | Environment (default: SUPERFLOWS_ENV, else production). |
--lang | cpp, go, java, rust, ruby, php, dotnet, node, python or other. |
--health URL | Your process’s own health URL, polled each heartbeat: a deadlocked process shows DEGRADED, not UP. |
--routes FILE | Endpoints to list, one METHOD /path per line. |
--release | Release version (default: SUPERFLOWS_RELEASE). |
Exit and signals
Signals pass through to your process and output passes through unchanged; superflows run exits with your process’s exit code, so systemd, PM2 and Docker see no difference. An exit after SIGTERM or Ctrl-C is a clean stop; any other exit is a crash, reported with the last stderr lines.