- GoDaddy Hosting with cPanel access
- Node.js hosting enabled (contact GoDaddy support if needed)
- SSH access to your hosting account
-
SSH into your GoDaddy server:
ssh username@your-domain.com
-
Install Node Version Manager (nvm):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash source ~/.bashrc
-
Install Node.js:
nvm install 18 nvm use 18
-
Install PM2 (Process Manager):
npm install -g pm2
-
Create application directory:
mkdir -p ~/primenevada cd ~/primenevada
-
Clone or upload your code:
git clone https://github.com/yourusername/primenevada.git .
-
Install dependencies:
npm install --production
-
Set up environment variables:
# Create .env file cp .env.example .env # Edit with your production values nano .env # Set proper permissions chmod 600 .env
-
Start the application with PM2:
pm2 start server.js --name "primenevada" pm2 save pm2 startup
-
In cPanel, set up a reverse proxy:
- Go to "Domains" section
- Click on your domain
- Under "Node.js", add a new application
- Set the following:
- Application root: /home/username/primenevada
- Application URL: your-domain.com
- Application startup file: server.js
- Node.js version: 18
- Environment: production
-
Configure SSL:
- Install SSL certificate through cPanel
- Enable HTTPS redirection
Required environment variables in .env
:
RECAPTCHA_SITE_KEY=your_recaptcha_site_key
RECAPTCHA_SECRET_KEY=your_recaptcha_secret_key
EMAIL_USER=your_email@example.com
EMAIL_PASS=your_email_app_password
PORT=3000
NODE_ENV=production
-
View application logs:
pm2 logs primenevada
-
Monitor application:
pm2 monit
-
Restart application:
pm2 restart primenevada
-
Update application:
cd ~/primenevada git pull npm install --production pm2 restart primenevada
- Keep Node.js and npm packages updated
- Use HTTPS only
- Store sensitive data in .env
- Set proper file permissions
- Regular security updates
- Monitor application logs
- Use PM2 for process management
- Enable GoDaddy firewall
-
Code backup:
- GitHub repository
- Local development backup
-
Environment backup:
- Secure copy of .env
- Document all credentials
- Regular database backups (if added later)
-
If the application crashes:
pm2 logs primenevada
-
If changes don't appear:
pm2 restart primenevada
-
If server restarts:
pm2 resurrect
For hosting issues:
- GoDaddy Support: 1-866-938-1119
- Documentation: https://www.godaddy.com/help
For application issues:
- Email: info@primenevada.com
- Subject: "Technical Support: [Issue]"