---
title: Deploy Build New with AI on Blossom
url: "/deploy/build-new/"
canonical_url: https://blossom88.com/deploy/build-new/
markdown_url: https://blossom88.com/deploy/build-new.md
summary: Deploy Brian Casel's Build New starter on Blossom with Rails, React, Inertia,
  and managed PostgreSQL.
categories:
- deployment
- starter
stack:
- Ruby on Rails
- React
- Inertia
- PostgreSQL
---

# Deploy Build New with AI on Blossom

[Build New](https://buildermethods.com/rails-react-template) is a full-stack
starter from Brian Casel at Builder Methods. It pairs Rails with React through
Inertia and gives you sign-in and signup to build on.

![The Build New starter homepage with Sign up and Log in buttons.](/deploy/assets/images/build-new/home.webp)

Create your project from the [Build New template](https://github.com/buildermethods/build-new)
and connect your repository to Blossom. Open the deployed homepage, then
visit sign-in and signup to see the app you can build on.

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

The [upstream README](https://github.com/buildermethods/build-new#license)
permits using, forking, and adapting the template. The deployment was tested
with [Build New commit b556827](https://github.com/buildermethods/build-new/commit/b556827368ee0fe7b0b4723254846e9d17633ab3).

Use Blossom's automatic build detection for Node.js and Ruby. Include npm
development dependencies during the build so Vite can compile the browser
assets and server-rendered bundle. Link a managed PostgreSQL Database
as `DATABASE_URL`, set `RAILS_ENV=production` and `INERTIA_SSR=1`, and
save a stable `SECRET_KEY_BASE` in the Environment's runtime variables.
Set `RAILS_LOG_TO_STDOUT=true` and `RAILS_SERVE_STATIC_FILES=true`.

Run one `web` Service on port `3000` with the Rails health endpoint `/up`.
The start command prepares the database, starts Vite SSR, and runs Rails
in the foreground.

```yaml
service:
  environment_id: environment-100
  name: web
  port: 3000
  publicly_exposed: true
  desired_size: 1
  command: >-
    sh -c 'bin/rails db:prepare && (bin/vite ssr & exec bin/rails server -b 0.0.0.0 -p 3000)'
  health_check:
    enabled: true
    kind: http
    path: /up
```

Create the resources and deploy.

    blossom profile:show
    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom git_repo:create --data repo.yml
    blossom database_instance:create --data postgres.yml
    blossom environment_link:create --data postgres-link.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom service:create --data web.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Ask Your Agent

> **Ask your AI agent:** Deploy my repository created from Builder Methods' Build New template on Blossom. Link managed PostgreSQL and make sure the Rails homepage, sign-in, and server-rendered React pages load over HTTPS.
>
> Follow this guide: https://blossom88.com/deploy/build-new/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## What You Get

- A Rails and React starter on an HTTPS URL
- Sign-in and signup backed by managed PostgreSQL
- React pages rendered on the server
