Run npm install from spiri-base folder

This commit is contained in:
Alex 2024-12-13 12:17:39 -04:00
parent 2a2f99d407
commit 32f1d5edd1

View File

@ -185,9 +185,9 @@ setup-webapp-service:
cd /home/spiri/Spiri-Base && git pull || (echo "Error updating repository. Check network and repository access." && exit 1); \
else \
git clone https://git.spirirobotics.com/aepko/Spiri-Base.git /home/spiri/Spiri-Base || (echo "Error cloning repository. Check network and repository access." && exit 1); \
cd ~/Spiri-Base && git sparse-checkout init --cone && git sparse-checkout set .output; \
$(SUDO) npm install; \
cd /home/spiri/Spiri-Base && git sparse-checkout init --cone && git sparse-checkout set .output; \
fi;
@cd /home/spiri/Spiri-Base && $(SUDO) npm install;
@if [ -f $(CURDIR)/webapp.service ]; then \
$(SUDO) cp $(CURDIR)/webapp.service /etc/systemd/system/webapp.service; \
$(SUDO) systemctl enable webapp.service; \