Skip to content

Commit 23c60c5

Browse files
Don't restart similarity server or overwrite .env in deploy script
The similarity server takes ~13 min to reload vectors, so avoid restarting it automatically. The .env file is environment-specific and should not be overwritten by deployments. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 60c5481 commit 23c60c5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

scripts/deploy.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ cp config/Index.conf $DEST/config/Index.conf
5959
cp config/gunicorn_config.py $DEST/gunicorn_config.py
6060
# Note: config/Greynir.conf is not copied
6161

62-
cp .env $DEST/.env
62+
# Note: .env is not copied (environment-specific)
6363
cp article.py $DEST/article.py
6464
cp fetcher.py $DEST/fetcher.py
6565
cp geo.py $DEST/geo.py
@@ -106,9 +106,8 @@ if [[ "$MODE" = "PRODUCTION" ]]; then
106106
source "$SRC/vectors/venv/bin/activate"
107107
pip install -r "$SRC/vectors/requirements.txt"
108108
deactivate
109-
110-
echo "Restarting similarity server..."
111-
sudo systemctl restart similarity
109+
# Note: similarity server is NOT restarted here (13 min downtime).
110+
# Restart it manually if needed: sudo systemctl restart similarity
112111
fi
113112

114113
echo "Deployment done"

0 commit comments

Comments
 (0)