spb/airiskindex
Public
The most methodologically rigorous, fully transparent AI job-exposure index.
1#!/usr/bin/env bash23# File: deploy.sh4# Path: infra/deploy.sh5# Project: AI Risk Index — airiskindex.io6# Author: Simon-Pierre Boucher7# Contact: contact@spboucher.ai8# Copyright © 2026 Simon-Pierre Boucher. All rights reserved.9#10# Description: Deploy script for the m3u96b node.1112# Deploy to m3u96b (staging/current prod) — CLAUDE.md §7. Run ON the node.13set -euo pipefail1415cd /srv/airiskindex1617git pull --ff-only origin main18pnpm install --frozen-lockfile19pnpm build20pnpm db:migrate:deploy2122sudo systemctl restart airiskindex-web airiskindex-worker23sudo systemctl status airiskindex-web --no-pager2425# Localhost health, then the PUBLIC URL — tunnel failures are the most common outage cause.26curl -fsS http://127.0.0.1:3000/api/v1/health27curl -fsS https://www.airiskindex.io/api/v1/health2829echo "deploy OK"30