Kill old process before starting in bootstrap

This commit is contained in:
Russell Ballestrini 2026-01-03 06:12:07 -05:00
parent de4e2d90fc
commit e5271ff6b4

View file

@ -19,5 +19,9 @@ pip install -r requirements.txt
# Create data directory for database
mkdir -p data
# Kill any existing neopig process before starting (for redeployments)
pkill -f "python.*neopig" || true
sleep 1
# Run neopig.py --serve on port 80 with import mode (tar.gz uploads)
NEOPIG_IMPORT=1 NEOPIG_DISABLE_CRAWL=1 python neopig.py --serve --host 0.0.0.0 --port 80