hippofish/docs/upgrade.md
naskya dff0cb799c
docs: update documents and config files
Co-authored-by: sup39 <dev@sup39.dev>
2024-03-19 00:21:02 +09:00

1.1 KiB

Upgrade instruction

For systemd/pm2 users

  1. Check docs/notice-for-admins.md
  2. Stop the server
    sudo systemctl stop your-firefish-service.service
    # or pm2 stop firefish
    
  3. Pull the latest source code
    git checkout -- packages/backend/assets
    git pull --ff origin main
    
  4. Build Firefish and apply changes to the database
    corepack prepare pnpm@latest --activate
    pnpm install --frozen-lockfile
    NODE_ENV='production' NODE_OPTIONS='--max_old_space_size=3072' pnpm run rebuild
    pnpm run migrate
    
  5. Start the server
    sudo systemctl start your-firefish-service.service
    # or pm2 start firefish
    

For Docker/Podman users

  1. Check docs/notice-for-admins.md
  2. Pull the latest container image
    docker pull registry.firefish.dev/firefish/firefish:latest
    # or podman pull registry.firefish.dev/firefish/firefish:latest
    
  3. Start the container
    docker compose up --detach
    # or podman-compose up --detach