This repository has been archived on 2025-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
puyoskey-firefish/docs/upgrade.md
naskya d096da02e6 🎉 First Commit
release: v20240729

Co-authored-by: Laura Hausmann <laura@hausmann.dev>
Co-authored-by: GitLab CI <project_7_bot_1bfaee5701aed20091a86249a967a6c1@noreply.firefish.dev>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Saamkhaih Kyakya <70475761+hiohlan@users.noreply.github.com>

See merge request firefish/firefish!11214
2024-08-01 00:03:39 +09:00

1.2 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