Files
hats-app/.env.deploy.example
Ichsan Kurniawan d0db9ee429 Add VPS deployment automation
This change adds staging and production deployment configuration for the VPS setup, including `.env.deploy.example`, `.env.staging`, and updated production environment values. It also introduces a PowerShell deployment script that builds the app, packages the Next.js artifact, uploads it to the server, and reloads PM2. Package scripts were added for staging and production deploys, and the TypeScript config now excludes legacy `.old` files.
2026-10-05 19:52:11 +07:00

26 lines
922 B
Bash

# ==============================================================================
# HATS-APP - VPS DEPLOYMENT CONFIGURATION TEMPLATE
# ==============================================================================
# Copy this file to '.env.deploy' and adjust the values as needed.
# Do NOT commit '.env.deploy' containing real credentials to public repositories!
# VPS Connection Credentials
VPS_HOST=36.66.3.44
VPS_PORT=22
VPS_USER=root
VPS_PASSWORD=your_vps_password_here
VPS_KEY_PATH=
# Staging Environment Settings
VPS_PATH_STAGING=/home/repositories/hats-app-dev/hats-app
PM2_APP_STAGING=hats-app-dev
PM2_PORT_STAGING=7005
# Production Environment Settings
VPS_PATH_PRODUCTION=/home/repositories/hats-app
PM2_APP_PRODUCTION=hats-app
PM2_PORT_PRODUCTION=7002
# Optional Custom Post Deploy Command (defaults to auto reload or create PM2 service)
# POST_DEPLOY_CMD=pm2 reload hats-app-dev || pm2 restart hats-app-dev