---
title: Deploy Gramps Web with AI on Blossom
url: "/deploy/gramps-web/"
canonical_url: https://blossom88.com/deploy/gramps-web/
markdown_url: https://blossom88.com/deploy/gramps-web.md
summary: Run a private family tree, import a sample GEDCOM file, and keep its people
  and photos across updates.
categories:
- deployment
- genealogy
stack:
- Python
- Flask
- SQLite
---

# Deploy Gramps Web with AI on Blossom

[Gramps Web](https://www.grampsweb.org/) lets you build and explore a family
tree in your browser. Start with a fictional family and a sample photo to see
how people, relationships, and records fit together.

## Ask Your Agent

> **Ask your AI agent:** Deploy Gramps Web on Blossom. Help me import a sample family tree and attach a photo.
>
> Follow this guide: https://blossom88.com/deploy/gramps-web/

[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/#blossom-byoc).

## Have Ready

Nothing is required beyond your Blossom account.

- **A sample GEDCOM file** (Later): Use the fictional Harbor tree in the recipe below or bring your own test file.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Gramps Web | Serve the genealogy site and perform the small sample import | One Persistent Service with Blossom Account access |
| SQLite and media | Keep the tree, logins, search index, and files together | One Volume mounted at /data |

## Deploy Gramps Web

Use the official Gramps Web image with a Volume at `/data`. Set the site to
Blossom Account access before creating the first Gramps Web owner.

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

The pinned [Gramps Web 26.11.3](https://github.com/gramps-project/gramps-web/releases/tag/v26.11.3)
image includes Gramps 6.0.8 and Gramps Web API 3.26.0.
Use `ghcr.io/gramps-project/grampsweb@sha256:bf672745c0428ec37f398f51a89e07a0dabe4f2abc1038fd0952e358ae0228a3`.
Run the [startup script](/deploy/recipes/gramps-web/start-private-tree.sh)
with `/bin/sh` as the Service entrypoint. Use port 5000 with a TCP health
check and one Container. The sample import runs in the web process.

The tree database path needs its own setting, `GRAMPS_DATABASE_PATH=/data/trees`.
Set `GRAMPSWEB_TREE=Harbor Sample`, `GRAMPSWEB_MEDIA_BASE_DIR=/data/media`,
`GRAMPSWEB_USER_DB_URI=sqlite:////data/users.sqlite`, and
`GRAMPSWEB_SEARCH_INDEX_DB_URI=sqlite:////data/search.sqlite`. Keep
`GRAMPSWEB_SECRET_KEY` stable in a protected Environment variable.

</details>

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

    blossom app_plan:preview --data gramps-web-plan.yml
    blossom app:create --data gramps-web-app.yml
    blossom environment:create --data gramps-web-environment.yml
    blossom env_var:push --environment environment-100 --file gramps-web.env
    blossom service:create --data gramps-web-service.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Import a Sample Family

Create your Gramps Web owner and import the
[fictional Harbor tree](/deploy/recipes/gramps-web/harbor-tree.ged).
Open Ada, Morgan, and Rowan and check their family links.

![Open the fictional Harbor family and its relationships.](/deploy/assets/images/gramps-web/gramps-harbor-family.webp)

> **Ask your AI agent:** Set up my private Gramps Web owner, import the fictional Harbor tree, and show me how the three people are related.

> Follow this guide: https://blossom88.com/deploy/gramps-web/



## Link a Photo to a Person

Upload a sample image and attach it to Ada Harbor's person record.
Open her record again and download the original media file.

> **Ask your AI agent:** Attach a sample photo to Ada Harbor and show me the original image from her record.

> Follow this guide: https://blossom88.com/deploy/gramps-web/



## Keep It Running

Keep the same Volume and secret on updates. In your test Environment,
replace the web Container, sign in again, and reopen the family links
and original photo.

![Reopen Ada Harbor and the original linked media.](/deploy/assets/images/gramps-web/gramps-ada-media.webp)


> **Ask your AI agent:** Replace the Gramps Web demo Container and reopen the same family links and Ada's photo.

> Follow this guide: https://blossom88.com/deploy/gramps-web/



## What You Get

- A Gramps Web site protected by Blossom Account access
- A sample tree with three people and their relationships
- A media file linked to a person
- A tree and photo you can reopen after an app update

Tested on Blossom: A fresh owner sign-in reopened the three people, the same family links, and Ada's original image after replacing the Container.
