xiaohongshu
xiaohongshu
julien-infra-jokers
Complete management for Jokers Hockey website - deployment, build checks, database migrations (Drizzle ORM), and PM2 process management. Use for any Jokers site operation.
Full skill instructions
Complete infrastructure management for the Jokers Hockey website.
| Component | Details |
|---|---|
| Server | srv759970.hstgr.cloud (69.62.108.82) |
| User | automation |
| Path | /var/www/jokers |
| PM2 Process | jokers-hockey |
| Port | 5020 |
| URL | https://jokers.srv759970.hstgr.cloud |
| Database | PostgreSQL (localhost:5432/jokers_prod) |
| ORM | Drizzle |
ssh [email protected]
cd /var/www/jokers
git pull origin main
npm install
npm run db:push
npm run build
pm2 restart jokers-hockey
# Local: verify build works
npm run check
npm run build
ls -la dist/
pm2 status jokers-hockey
pm2 logs jokers-hockey --lines 50
curl -I https://jokers.srv759970.hstgr.cloud
git log --oneline -5
git checkout <previous-commit>
npm install && npm run build
pm2 restart jokers-hockey
# TypeScript compilation
npm run check
# Clean build
rm -rf dist/ && npm run build
# Verify output
ls -la dist/
ls -la dist/public/assets/
dist/
├── index.js (server ~5KB)
└── public/
├── index.html
└── assets/
├── index-[hash].css (~70KB)
└── index-[hash].js (~350KB)
# No debug code
grep -r "console.log\|debugger" client/src/ || echo "Clean"
# Security audit
npm audit --production
# Bundle sizes (should be < 500KB JS, < 100KB CSS)
du -sh dist/public/assets/*.js
du -sh dist/public/assets/*.css
shared/schema.tsdrizzle.config.ts# Development (direct apply)
npm run db:push
# Production
ssh [email protected]
cd /var/www/jokers
git pull origin main
npm run db:push
pm2 restart jokers-hockey
import { pgTable, serial, text, timestamp } from "drizzle-orm/pg-core";
export const news = pgTable("news", {
id: serial("id").primaryKey(),
title: text("title").notNull(),
content: text("content").notNull(),
publishedAt: timestamp("published_at").defaultNow(),
});
docker exec postgresql-shared pg_dump -U postgres jokers_prod > backup_$(date +%Y%m%d).sql
ssh [email protected]
docker exec -it postgresql-shared psql -U postgres -d jokers_prod
\dt # list tables
\d table_name # describe table
\q
ssh [email protected]
pm2 status jokers-hockey
pm2 show jokers-hockey
pm2 monit # live dashboard
pm2 logs jokers-hockey --lines 100
pm2 logs jokers-hockey --err # errors only
pm2 flush jokers-hockey # clear logs
pm2 restart jokers-hockey
pm2 stop jokers-hockey
pm2 start jokers-hockey
pm2 reload jokers-hockey # zero-downtime
File: /var/www/jokers/ecosystem.config.cjs
module.exports = {
apps: [{
name: 'jokers-hockey',
script: './dist/index.js',
instances: 1,
env: { NODE_ENV: 'production', PORT: 5020 },
max_memory_restart: '500M',
}]
}
pm2 save # after any changes
pm2 status jokers-hockey
pm2 logs jokers-hockey --lines 100
pm2 restart jokers-hockey
curl -I https://jokers.srv759970.hstgr.cloud
npm run check # TypeScript errors
rm -rf node_modules/.vite && npm install
npm run build
echo $DATABASE_URL
docker exec postgresql-shared psql -U postgres -d jokers_prod -c "SELECT version();"
netstat -tulpn | grep :5020
pm2 restart jokers-hockey
sudo nginx -t
sudo tail -f /var/log/nginx/jokers_ssl_error.log
#!/bin/bash
echo "=== Jokers Health Check ==="
pm2 status jokers-hockey | grep online && echo "PM2: OK"
curl -sI https://jokers.srv759970.hstgr.cloud | grep "200\|301" && echo "HTTP: OK"
netstat -tulpn | grep :5020 && echo "Port: OK"
docker exec postgresql-shared psql -U postgres -d jokers_prod -c "SELECT 1;" && echo "DB: OK"
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience