---
title: Deploy Solidus with AI on Blossom
url: "/deploy/solidus/"
canonical_url: https://blossom88.com/deploy/solidus/
markdown_url: https://blossom88.com/deploy/solidus.md
summary: Run a Rails storefront with Solidus and follow one notebook SKU from the
  catalog to a test order.
categories:
- deployment
- commerce
stack:
- Ruby
- Rails
- Tailwind CSS
- PostgreSQL
---

# Deploy Solidus with AI on Blossom

[Solidus](https://guides.solidus.io/) is an open-source commerce engine
for Ruby on Rails. Use the starter storefront to put one SKU through
checkout and find that SKU on the completed order.

## Ask Your Agent

> **Ask your AI agent:** Deploy Solidus on Blossom with managed PostgreSQL. Help me list a sample SKU and place a test order.
>
> Follow this guide: https://blossom88.com/deploy/solidus/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## How It Runs

| Part | Role | Where |
|---|---|---|
| Solidus storefront and Admin | Serve the Rails app and keep Active Storage product photos on a Volume | Persistent Service with Blossom Account access |
| PostgreSQL | Store the catalog, stock, and orders | Blossom Managed Data |

## Deploy the Solidus Starter Storefront

Generate the Rails project with the Solidus starter and Solidus Admin.
Deploy it behind Blossom Account access with managed PostgreSQL and a
Volume for product photos.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Use [Solidus 4.8.1](https://github.com/solidusio/solidus/releases/tag/v4.8.1)
and its [starter generator](https://github.com/solidusio/solidus/blob/v4.8.1/storefront/README.md).
Generate the Rails project with PostgreSQL and align its Gemfile
dependencies with the tested [Gemfile.lock](/deploy/recipes/solidus/Gemfile.lock).
Use Tailwind's generated stylesheet and turn off the legacy Sass compressor
in production so Rails can fingerprint the compiled CSS.
The [Dockerfile](/deploy/recipes/solidus/Dockerfile) builds from the
generated `store/` directory. Pair it with the
[startup script](/deploy/recipes/solidus/start-solidus) under `recipe/`.
The image compiles the Rails assets and uses libvips for product images.

Link managed PostgreSQL 18 as `DATABASE_URL`, set a stable
`SECRET_KEY_BASE`, mount `/rails/storage`, and use port 3000 with a TCP
health check. Keep Active Storage on the local disk for this recipe.

</details>

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app_plan:preview --data solidus-plan.yml
    blossom database_instance:create --data solidus-postgres.yml
    blossom app:create --data solidus-app.yml
    blossom environment:create --data solidus-environment.yml
    blossom environment_link:create --data solidus-postgres-link.yml
    blossom env_var:push --environment environment-100 --file solidus.env
    blossom service:create --data solidus-web.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Create a Private Store and Owner

Apply the Rails migrations and seed the default records in the new demo
database. Create a private owner, then set up one delivery method and the
**Pay by check** payment method for the sample store.

> **Ask your AI agent:** Set up a private Solidus store owner, one delivery method, and an offline check payment method for testing.

> Follow this guide: https://blossom88.com/deploy/solidus/



## Follow the Notebook SKU Through Checkout

Create **Harbor Workshop Notebook** with a photo and stock. Place an
order for one using **Pay by check**. Find the order in Solidus Admin
and check that its line item has the notebook's SKU.

![Open the notebook in the storefront.](/deploy/assets/images/solidus/solidus-workshop-notebook.webp)

> **Ask your AI agent:** List a sample notebook with a photo and stock, place an offline test order, and show me the SKU on the order.

> Follow this guide: https://blossom88.com/deploy/solidus/



## Keep It Running

![Find the original notebook SKU in Solidus Admin.](/deploy/assets/images/solidus/solidus-notebook-order.webp)


Replace the demo Container with the same PostgreSQL Link and Volume.
Sign in again and reopen the same order and product photo.

> **Ask your AI agent:** Replace the Solidus demo Container, then reopen the original notebook order and check that the product photo still loads.

> Follow this guide: https://blossom88.com/deploy/solidus/



<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom service:scale --id service-100 --desired-size 0 --follow
    blossom service:scale --id service-100 --desired-size 1 --follow
    blossom container:list --service service-100

</details>

## What You Get

- A private Rails storefront and Solidus Admin
- A sample notebook SKU with stock and a photo
- A test order with a delivery method and offline payment
- An order and product photo you can reopen after a deployment

Tested on Blossom: The original notebook SKU, order, product photo and compiled stylesheet were available after the web Container was replaced.
