Skip to content

Instantly share code, notes, and snippets.

View hulous's full-sized avatar
🖖

Fabien Bénariac hulous

🖖
  • Lendopolis
  • Boussy Saint Antoine, France
  • 00:21 (UTC +02:00)
  • LinkedIn in/fbenariac
View GitHub Profile

How to deploy a Rails 7.1 app with Postgres and Kamal on a single server

I think you have looked at the tutorial from Mr. Heinemeier Hansson at least once or twice and have a similar setup.

rails new kamal_pg --css tailwind --skip-test --database=postgresql

cd kamal_pg
@hulous
hulous / "torn" 1 Setup vps.md
Created February 5, 2024 20:39 — forked from deHelden/"torn" 1 Setup vps.md
Deploy Rails 7.0.4.2 to VPS(DigitalOcean Ubuntu 20). Nginx, Puma, Capistrano3, PostgreSQL, Rbenv.

SETUP VPS

based on DigitalOcean guide

Create local project

local$ rails new appname -T -d postgresql
local$ rails g scaffold Story title:string body:text
local$ rails db:migrate