Skip to content

Commit 9fd56c6

Browse files
authored
Merge pull request #33 from mikkelhegn/watch-commands
Adding watch configuration to templates and examples
2 parents 9042ffe + af6f4df commit 9fd56c6

File tree

7 files changed

+7
-1
lines changed

7 files changed

+7
-1
lines changed

examples/KV/spin.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ key_value_stores = ["default"]
1313
route = "/..."
1414
[component.build]
1515
command = "spin py2wasm app -o app.wasm"
16+
watch = ["app.py"]

examples/external_lib/spin.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ source = "app.wasm"
1212
route = "/..."
1313
[component.build]
1414
command = "spin py2wasm app -o app.wasm"
15+
watch = ["app.py", "Pipfile*"]

examples/hello_world/spin.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ source = "app.wasm"
1212
route = "/..."
1313
[component.build]
1414
command = "spin py2wasm app -o app.wasm"
15+
watch = ["app.py"]

examples/outbound_http/spin.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ allowed_http_hosts = ["https://some-random-api.ml"]
1414
route = "/..."
1515
[component.build]
1616
command = "spin py2wasm app -o app.wasm"
17+
watch = ["app.py"]

examples/outbound_redis/spin.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ source = "app.wasm"
1313
route = "/..."
1414
[component.build]
1515
command = "spin py2wasm app -o app.wasm"
16+
watch = ["app.py"]

templates/http-py/content/spin.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ source = "app.wasm"
1212
route = "{{http-path}}"
1313
[component.build]
1414
command = "spin py2wasm app -o app.wasm"
15+
watch = ["app.py", "Pipfile"]

templates/http-py/metadata/snippets/component.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ route = "{{http-path}}"
66
[component.build]
77
command = "spin py2wasm app -o app.wasm"
88
workdir = "{{ output-path }}"
9-
9+
watch = ["app.py", "Pipfile"]

0 commit comments

Comments
 (0)