Compare commits

..

2 Commits

Author SHA1 Message Date
f572748de5 Finally a production ready application 2024-07-20 22:41:47 -05:00
c70144bb22 Finally a production ready application 2024-07-20 22:40:16 -05:00
3 changed files with 6 additions and 6 deletions

4
.prod/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM node:latest
WORKDIR /home/node/app
RUN npm install -g pnpm
CMD ["pnpm", "go"]

4
update/update_host.sh → .prod/update.sh Executable file → Normal file
View File

@ -1,4 +1,4 @@
sudo docker restart techtracker
cd ~/Documents/Web/Tech_Tracker_Web cd ~/Documents/Web/Tech_Tracker_Web
git pull git pull
sudo docker exec techtracker bash update/update_container.sh pnpm update
sudo docker restart techtracker

View File

@ -1,4 +0,0 @@
wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
source ~/.bashrc
pnpm build
pnpm start