mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-13 01:07:12 +00:00
initial commit
This commit is contained in:
18
dev.sh
Executable file
18
dev.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Function to handle Ctrl+C
|
||||
handle_sigint() {
|
||||
kill $pid1 $pid2 $pid3
|
||||
exit
|
||||
}
|
||||
|
||||
# Trap Ctrl+C signal
|
||||
trap 'handle_sigint' SIGINT
|
||||
|
||||
# Start three processes in the background
|
||||
npm run dev --prefix ./client & pid1=$!
|
||||
npm start --prefix ./desktop & pid2=$!
|
||||
go run -C ./server . & pid3=$!
|
||||
|
||||
# Wait for all processes to finish
|
||||
wait
|
||||
Reference in New Issue
Block a user