Spaces:
Sleeping
Sleeping
File size: 399 Bytes
f2a243f 940e723 f2a243f 940e723 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/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 |