This installation instructions assume you have purchased the Spree Enterprise Edition license.

Prerequisites

  • You need to be on Spree 5.1+, we recommend using spree_starter as a base for your application
  • You need to have 2 environment variables set:
    • KEYGEN_ACCOUNT_ID
    • KEYGEN_LICENSE_KEY
  • We support both PostgreSQL and MySQL databases
  • Redis/Valkey for background jobs

Environment variables will be provided to you after purchasing the Spree Enterprise Edition license.

You will need to add these environment variables to your CI/CD pipeline and production environments.

Installing gems

  1. Add the following code to your Gemfile:

    source "https://license:#{ENV['KEYGEN_LICENSE_KEY']}@rubygems.pkg.keygen.sh/#{ENV['KEYGEN_ACCOUNT_ID']}" do
      gem 'spree_enterprise'
      gem 'spree_multi_vendor'
    end
    
  2. Install gems:

    bundle install
    
  3. Run generators:

    bundle exec rails g spree_enterprise:install && bundle exec rails g spree_multi_vendor:install
    

    This will copy and run migrations for spree_enterprise and spree_multi_vendor gems.