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 install
pnpm build
If build success, build artifact available at ./build
. Now set environment to production
export NODE_ENV=production
Build with Docker Compose:
docker-compose up -d
Install pm2 globally
npm install -g pm2
Start the app as daemon service
pm2 start server.js --name "OsekBG"
Just run the Makefile script
make upload-deploy