#!/usr/bin/env bash
set -euo pipefail

cd /opt/rental-system
/usr/bin/npm run build --workspace @rental/shared
/usr/bin/npm run build --workspace @rental/web
echo Alicja | sudo -S systemctl restart rental-web
echo Alicja | sudo -S systemctl is-active rental-web
