Update updater for server

This commit is contained in:
Gabriel Brown 2024-07-20 21:57:40 -05:00
parent ba25d3efc6
commit d67bd0f8b9
3 changed files with 7 additions and 7 deletions

View File

@ -1,7 +0,0 @@
sudo docker restart techtracker
cd ~/Documents/Web/Tech_Tracker_Web
git pull
#sudo docker exec techtracker wget -qO- https://get.pnpm.io/install.sh\
#| ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
sudo docker exec techtracker /home/node/.local/share/pnpm/pnpm build
sudo docker exec techtracker /home/node/.local/share/pnpm/pnpm start &

3
update/update_container.sh Executable file
View File

@ -0,0 +1,3 @@
wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
/home/node/.local/share/pnpm/pnpm build
/home/node/.local/share/pnpm/pnpm start &

4
update/update_host.sh Executable file
View File

@ -0,0 +1,4 @@
sudo docker restart techtracker
cd ~/Documents/Web/Tech_Tracker_Web
git pull
sudo docker exec techtracker /home/node/app/update/update_container.sh