Skip to content

Commit

Permalink
chore: 🤖 add install and builds steps to update script
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Nov 28, 2023
1 parent a31db3e commit 0a54be6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/update
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ git clean -f
echo "[INFO] Current commit"
git show --oneline -s

echo "[INFO] Update packages"
if ! npm install; then
echo "👹 Oops! Failed to npm install"

exit 1
fi

echo "[INFO] Build"
if ! npm run build; then
echo "👹 Oops! Failed to build"

exit 1
fi

if ! docker compose ps --format "{{.Service}} {{.State}}" | grep 'llm_indexer running' || ! docker compose ps --format "{{.Service}} {{.State}}" | grep 'discordjs-bot'; then
echo "⚠️ Warrning: Docker compose stack is down"
echo "🤖 Should start compose stack, be patient..."
Expand Down

0 comments on commit 0a54be6

Please sign in to comment.