Skip to content

Commit

Permalink
up/down scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
StuartHarris committed Aug 15, 2024
1 parent 1a52b19 commit 414914b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
12 changes: 11 additions & 1 deletion platform-wasmcloud/down.fish
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
#!/usr/bin/env fish

wash app delete ./wadm.yaml
wash down --all

pushd /tmp
if test -f wash-ui.pid
set PID (cat wash-ui.pid)
rm -f wash-ui.pid wash-ui.out
if test -n "$PID"
kill $PID
end
end
popd
3 changes: 3 additions & 0 deletions platform-wasmcloud/start.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env fish

wash app deploy ./wadm.yaml
3 changes: 3 additions & 0 deletions platform-wasmcloud/stop.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env fish

wash app delete ./wadm.yaml
10 changes: 9 additions & 1 deletion platform-wasmcloud/up.fish
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/usr/bin/env fish

wash app deploy ./wadm.yaml
wash up -d

pushd /tmp
status job-control full
nohup wash ui > wash-ui.out &
cat wash-ui.out
set PID $last_pid
echo $PID > wash-ui.pid
popd

0 comments on commit 414914b

Please sign in to comment.