Word Osek is adapted from Sasak Language that means remove. And I call it OsekBG which stands for Osek Background or Remove Background
rsync -avz \
--exclude=".svelte-kit" \
--exclude="node_modules" \
--exclude=".github" \
--exclude=".git" \
--exclude="build" \
-e "ssh -p <PORT> -i ~/.ssh/<SSH_PRIVATE_KEY>" \
./ <USER>@<IP_ADDRESS>:<PATH_TO_DIR>pnpm installpnpm buildIf build success, build artifact available at ./build. Now set environment to production
export NODE_ENV=productionBuild with Docker Compose:
docker-compose up -dInstall pm2 globally
npm install -g pm2Start the app as daemon service
pm2 start server.js --name "OsekBG"Just run the Makefile script
make upload-deploy