Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

781 B
Raw Blame
---
title: Upgrading to Spree 5.1
description: This guide covers upgrading a Spree 5.0 application to Spree 5.1.
canonical: "https://spreecommerce.org/docs/v5/developer/upgrades/5.0-to-5.1"
---

<Info>
  Before proceeding to upgrade, please ensure you're at [Spree 5.0](/v5/developer/upgrades/4.10-to-5.0)
</Info>

## Upgrade steps

### 1. Update gems

```bash
bundle update
```

### 2. Install and run missing migrations

```bash
bin/rake spree:install:migrations && bin/rails db:migrate
```

### 3. Migrate admin user accounts to the new system

Spree 5.1 introduces a new better way of managing admin user accounts. To ensure your existing admin user accounts are migrated to the new system, run the following command:

```bash
bin/rake db:migrate_admin_users_to_role_users
```