Root-Based Installation Guide
Quick installation path using root account (Simpler setup, but less secure)
Table of Contents
System Requirements & Prerequisites
Minimum Production Specifications
- RAM: 4 GB
- Disk: 20 GB available space
- OS: Ubuntu 20.04 LTS or later (x86_64 architecture)
- Network: Internet connectivity for package installation
Required Open Ports
- Port 80 (HTTP)
- Port 443 (HTTPS)
- Port 3000 (Next.js application, if not proxied)
Unsupported Environments
- Non-Ubuntu distributions (Debian, CentOS, RHEL, etc.)
- ARM architectures (ARM64, ARMv7)
- Ubuntu versions prior to 20.04
Prerequisites
Before starting the installation, ensure you have the following:
- Domain Name (Required): A valid domain name that points to your server's IP address
- The domain must have DNS A record configured to point to your server's public IP
- Example:
app.yourcompany.comorhiretrack.yourdomain.com - The installer will prompt for this domain name during Nginx setup
- SSL certificate generation (Let's Encrypt) requires the domain to resolve correctly
- Root Access: Full root access to the server
- SSH Access: Ability to connect to the server via SSH
- Email Address: Verified email address to get the license for Hiretrack
Security Note: Root-based installation provides full system privileges. For better security, consider using User-Based Installation which offers better isolation and restricted permissions.
Root-Based Preparation Steps
This section assumes you already have root access and want the quickest path. SSH key setup is not required in this flow.
Step 1: Basic Server Prep (as root)
Update package index and confirm you are root:
whoami
apt-get updateExpected output for whoami: root.
Step 2: Download Installer
Download the installer directly as root:
Download installer:
curl -L https://your-domain.com/hiretrack-installer -o /root/hiretrack-installerMake executable:
chmod +x /root/hiretrack-installerVerify download:
ls -l /root/hiretrack-installerProceed to Run Installer.
Run Installer
Note: If you haven't downloaded the installer yet, go back to Step 2: Download Installer in the preparation steps.
Run the Installer
Ensure you're logged in as root:
whoamiExpected output: root
Run the installer:
./hiretrack-installerInstallation Process
The installer will:
- Check and install system dependencies (Node.js, npm, PM2, Nginx, MongoDB)
- Register or validate your license
- Download and extract the latest HireTrack application
- Configure the application environment
- Set up PM2 process management
- Configure Nginx reverse proxy
- Set up SSL certificates (Let's Encrypt)
- Configure automatic updates via cron
- Start the application
Monitor the output for any errors or warnings. Installation typically takes 5-15 minutes depending on system resources and network speed.
Installation Output
At the end of installation, you'll see a prominent registration URL:
════════════════════════════════════════════════
🎯 REGISTRATION URL
════════════════════════════════════════════════
You can register the first organization from the URL below:
╔═══════════════════════════════════════════════════════════╗
║ ║
║ https://your-domain.com/register/org ║
║ ║
╚═══════════════════════════════════════════════════════════╝Copy this URL and access it in your browser to complete the organization registration.
Post-Installation Verification
Check PM2 Process Status
pm2 listExpected output should show the HireTrack application process in online status.
Check Nginx Service Status
systemctl status nginxExpected output should show active (running).
Check Application Accessibility
curl -I http://localhostExpected output should show HTTP 200 or 301/302 redirect status.
View Application Logs
pm2 logsCheck Cron Jobs
crontab -lExpected output should show auto-update and snapshot cron jobs.
Verify SSL Certificate
certbot certificates