Skip to content

Commit

Permalink
add postdeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
joeybrown-sf committed Apr 1, 2024
1 parent f8df059 commit 81a1943
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.env
.docker_build/
bin/
20 changes: 20 additions & 0 deletions bin/postdeploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Path: bin/predeploy.sh
#!/bin/sh

echo "Starting task 1"
while true; do
echo "Resource monitor: $(date)"
sleep 2
done &
task1_pid=$!
echo "Task 1 PID: $task1_pid"

echo "Starting task 2"
# do a for loop through 0-5 and output each number. sleep for 3 seconds.
for i in {0..5}; do
echo "Long running task: $i/5"
sleep 3
done

kill $task1_pid
exit 0

0 comments on commit 81a1943

Please sign in to comment.