Docs
Home
  • Overview
  • Production deployment
  • aaPanel
  • aaPanel quick reference
Using SocialMine
Admin
Social platforms
Home
  • Overview
  • Production deployment
  • aaPanel
  • aaPanel quick reference
Using SocialMine
Admin
Social platforms
  • Setup & deployment

    • Setup & deployment
    • Production deployment overview
    • Deployment on aaPanel
    • aaPanel quick reference (SocialMine)
  • Guides

    • Using SocialMine
    • Admin configuration (super-admin)
    • Social platform configuration (developer portals)

aaPanel quick reference (SocialMine)

Short cheat sheet for a typical install under /www/wwwroot/socialmine. The PM2 process name in ecosystem.config.js is socialmine (if you created the app manually in aaPanel, your name may differ).

Paths

Project root:     /www/wwwroot/socialmine
Environment:      /www/wwwroot/socialmine/.env   (repository root — required)
Backend:          /www/wwwroot/socialmine/server
Frontend build:   /www/wwwroot/socialmine/client/dist
Backend build:    /www/wwwroot/socialmine/server/dist
Uploads:          /www/wwwroot/socialmine/server/uploads

PM2

pm2 status
pm2 logs socialmine
pm2 restart socialmine
pm2 save
pm2 startup

Backend (from server/)

cd /www/wwwroot/socialmine/server

npm install --production
npm run prisma:generate
npx dotenv-cli -e ../.env -- prisma migrate deploy
npm run build

Production start (without PM2): npm run start:prod — prefer PM2 in production.

Frontend

cd /www/wwwroot/socialmine/client
npm install
npm run build

Database

mysql -u socialmine_user -p socialmine
mysqldump -u socialmine_user -p socialmine > backup_$(date +%Y%m%d).sql

Nginx

nginx -t
systemctl reload nginx
tail -f /www/wwwlogs/yourdomain.com.error.log

Environment checklist

Root .env:

  • NODE_ENV=production
  • DATABASE_URL
  • JWT_SECRET, ENCRYPTION_KEY
  • CORS_ORIGIN, FRONTEND_URL, API_PUBLIC_URL
  • VITE_* — rebuild client after changes

Security

  • Strong secrets, HTTPS only in production, firewall on 80/443, do not commit .env, schedule DB backups.

See Deployment on aaPanel for the full guide. Raw copies: AAPANEL_QUICK_REFERENCE.md in the repository root.

Last Updated: 4/19/26, 1:11 PM
Prev
Deployment on aaPanel