mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:56:28 +00:00
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.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# ==============================================================================
|
||||
# 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
|
||||
Reference in New Issue
Block a user