Kill old process before starting in bootstrap
This commit is contained in:
parent
de4e2d90fc
commit
e5271ff6b4
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue