-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Currently if I combine the command trigger with an http trigger, Spin exits after having run the command trigger, maning that my http trigger does not stay up listening. One scenrio for this use-case would be to run some initialization logic as a command trigger, for an api being served using the http trigger.
spin_manifest_version = 2
[application]
authors = ["Mikkel Mørk Hegnhøj <[email protected]>"]
description = "Just a command trigger"
name = "command-trigger"
version = "0.1.0"
[[trigger.command]]
component = "command"
[component.command]
source = "../command/target/wasm32-wasi/release/command.wasm"
build = ["cargo component build --target wasm32-wasi --release --manifest-path ../command/Cargo.toml"]
[[trigger.http]]
route = "/..."
component = "another"
[component.another]
source = "another/target/another.wasm"
[component.another.build]
command = "npm run build"
workdir = "another"> spin up
Logging component stdio to ".spin/logs/"
Logging component stdio to ".spin/logs/"
Hello, world!
Serving http://127.0.0.1:3000
Available Routes:
another: http://127.0.0.1:3000 (wildcard)
> _Metadata
Metadata
Assignees
Labels
No labels