hippofish/docs/downgrade.md
2024-02-07 23:54:05 +09:00

1.1 KiB

Downgrading to v20240206

systemd

  1. Stop the Firefish service
    sudo systemctl stop your-firefish-service.service
    
  2. Take a backup
  3. Switch back to the v20240206 tag
    git switch v20240206
    
  4. Rebuild Firefish
    pnpm install --frozen-lockfile
    NODE_ENV='production' NODE_OPTIONS='--max_old_space_size=3072' pnpm run rebuild
    
  5. Start the Firefish service and confirm that Firefish is downgraded
    sudo systemctl start your-firefish-service.service
    

Docker/Podman

  1. Stop the container

    docker-compose down
    # or podman-compose down
    
  2. Take a backup

  3. Change the image tag to registry.firefish.dev/firefish/firefish:v20240206

    vim docker-compose.yml
    
    version: "3"
    
    services:
      web:
        image: registry.firefish.dev/firefish/firefish:v20240206  # here
    
  4. Start the container and confirm that Firefish is downgraded

    docker-compose up --detach
    # or podman-compose up --detach