Deployment in ASTRI
Requirements
- Ubuntu 24+
- Node.js 22+ (LTS)
- Bun
- pm2
- Docker 27+
Doc Deployment
ssh csa@192.168.3.60
mkdir -p repo
cd repo
git clone https://gitlab.astricsa.cf/hkt-idps/docs
cd docs
bun install
pm2 start "bun run ci" --name docs:3001
pm2 save
Backend Deployment
ssh csa@192.168.3.60
# Create and enter repo dir
mkdir -p repo
cd repo
# Clone main repo
git clone https://gitlab.astricsa.cf/hkt-idps/backend-server
# Clone nested repo
cd backend-server/api-server && git clone https://gitlab.astricsa.cf/hkt-idps/rules-generation.git && cd -
# Go to stack
cd backend-server/stack/
mkdir ./rules-data
cp .env.example .env
# Update the Environment Variables in .env file
pm2 start "docker compose up" --name idps-backend:8099
pm2 save