Deploy your full-stack or backend project on a VPS (e.g. DigitalOcean, Linode, AWS EC2).
- Server: Create a Linux VPS (Ubuntu 22.04 LTS is a good choice). SSH in:
ssh root@your-server-ip. - Stack: Install Node.js (e.g. via nvm), Python, or Java as required. Install MySQL/PostgreSQL and Nginx (or Apache). Use
apt update && apt install ...as needed. - App: Clone the repo or upload code. Install dependencies (
pnpm install/pip install -r requirements.txt), set.env, run migrations, and start the app (PM2 for Node, gunicorn/systemd for Python). - Nginx: Configure a server block to proxy to your app (e.g.
proxy_pass http://127.0.0.1:3000). Enable SSL with Let's Encrypt (certbot).
Restrict SSH (key-only, disable root login), keep the OS and stack updated, and use a process manager (PM2, systemd) so the app restarts on reboot.