xarical's picture
Add Playwright service and integrate with tools.py for web search functionality
940e723
raw
history blame contribute delete
399 Bytes
#!/bin/bash
# start nginx
service nginx start
# start the Playwright service
node playwright_service.js > /dev/stdout 2>&1 & echo $! > playwright.pid
# start the processes
python tools.py > /dev/stdout 2>&1 & echo $! > tools.pid
python app.py > /dev/stdout 2>&1 # blocking
# when unblocked, kill other processes and clean up
pkill -F tools.pid
pkill -F playwright.pid
rm tools.pid playwright.pid