ToolNaka — 24/7 Go-Live Guide

Move from "runs on my laptop" to "runs forever on a cloud server" — every step, every command, everything already built.

Current status: LIVE ✅ Target: 24/7 VPS ~15 minute migration Kit included in the tar.gz

01 · Where things stand right now

CheckStatusEvidence
Live site✅ LIVEhttps://toolsnaka.store/api/health → 200 {"status":"ok","db":"ok"}
Auto-recovery✅ WorkingWatchdog (Windows scheduled task) restarts server + tunnel within ~30s of every boot/wake
Core features✅ All liveOTP registration · 4 automated emails · Moglix categories · approval workflow · Photo Requests (factory photo → seller/repair quotes) · invoices · Quick Bills · Pocket App
Data hygiene✅ LegitAll test orders/invoices removed (backup kept); 16 real users; 28 products
Currency display✅ FixedAll ₹ mojibake repaired across every dashboard

Limitation today: the app lives on the laptop — when the laptop is OFF, the site is off. This guide removes that limitation.

02 · The architecture (before → after)

Now (laptop)Target (VPS)
Where the app runsThis PC, port 3000Ubuntu server, Docker container
HTTPS + domainCloudflare named tunnel → PCCloudflare DNS (A record) + Caddy auto-HTTPS
DatabaseSQLite file on PCSQLite file on server volume (same file, copied over)
Uploads (part photos)data/uploads on PCSame folder on server volume
Emails / OTPtoolsnaka@gmail.com SMTPUnchanged — works anywhere
UptimeOnly while PC is on24/7/365 — independent of your PC

03 · Buy the server (one-time, ~5 minutes)

ProviderCheapest planCost/moNotes
Hetzner CX222 vCPU · 4 GB RAM · 40 GB SSD≈ ₹650Best value, trusted, German data centres
DigitalOcean Basic1 vCPU · 1 GB RAM≈ ₹550Most beginner-friendly panel
Vultr High Frequency1 vCPU · 1 GB RAM≈ ₹420Cheapest reliable entry

Choose Ubuntu 24.04, any region (Mumbai/Singapore for India speed). Pay with UPI/card. You get an IP address + root password — that's all I need from you.

04 · Migrate (15 minutes — or send me the IP + password and I do it)

Option A — I do it for you (easiest)

Send me: server IP · root password · confirm the region. I run every step below, transfer the database, switch DNS, verify live.

Option B — you do it (all commands ready)

1 · Upload the package from your PC:

scp ToolNaka-Full-Package.tar.gz root@YOUR_SERVER_IP:/opt/

2 · SSH in and run the one-command setup:

ssh root@YOUR_SERVER_IP
cd /opt && tar -xzf ToolNaka-Full-Package.tar.gz
bash deploy/deploy.sh

3 · Create env + start:

cp deploy/.env.production.example .env
nano .env            # set SMTP_PASS (and SMS key if you have one)
docker compose up -d --build

4 · Copy your live database (keeps all users/orders/products):

# from your PC (laptop), before or after the move:
scp prisma/prisma/dev.db root@YOUR_SERVER_IP:/opt/toolnaka/data/dev.db
ssh root@YOUR_SERVER_IP "cd /opt/toolnaka && docker compose restart"

5 · Point DNS in Cloudflare (2 clicks):

DNS → Add record → A · name: @ · IPv4: YOUR_SERVER_IP · proxy: ON
DNS → Add record → A · name: www · IPv4: YOUR_SERVER_IP · proxy: ON

6 · Wait 2-10 minutes, then:

curl https://toolsnaka.store/api/health   # → {"status":"ok","db":"ok"}

05 · What's already built for you in the package

FileWhat it does
deploy/DockerfileBuilds ToolNaka (Node 22, standalone Next.js) into one image
deploy/docker-compose.ymlApp + auto-HTTPS (Caddy) + persistent volumes + health check
deploy/CaddyfileFree HTTPS for toolsnaka.store + www (automatic certificates)
deploy/deploy.shInstalls Docker + daily DB backup cron on the server
deploy/.env.production.exampleTemplate — copy to .env, fill SMTP_PASS
deploy/README-DEPLOY.mdThe full written walkthrough (this guide in text form)

06 · After the move — keep it healthy

  • Backups are automatic: every night at 3 AM the server copies dev.db to /opt/toolnaka/backups/.
  • Updates: upload new source → docker compose up -d --build. That's it.
  • Monitor: https://toolsnaka.store/api/health anytime.
  • Your laptop becomes optional: keep it as a dev machine; the site no longer depends on it.

07 · Quick reference

ItemValue
Live sitehttps://toolsnaka.store
Download packageToolNaka-Full-Package.tar.gz
Support emailteamtoolnaka@gmail.com
Demo logins (password demo123)factory@toolnaka.com · vendor@toolnaka.com · admin@toolnaka.com · deptmanager@toolnaka.com · planthead@toolnaka.com
Database backup (pre-cleanup)backups/dev-db-backup-20260901.db