Hotwire uses Rails so this guide applies to any Rails app.
I assume you already have your Rails app working. If not, see this guide. I also assume you have Coolify set up and running.
First make a repo for your project on some hosted git platform. Coolify will pull it from there.
On the next screen ("New Resource"):
On the next screen ("Select a repository"):
main
, master
, ...).3000
.Configure the application.
https://
. Or just leave the ugly one Coolify generated.3000
.Set up environment variables.
rails secret
Copy the output.
In Coolify go to "Environment Variables".
You can use the "Developer view" on top if you like but rememer to save changes.
Set the following variables and use the rails secret you just generated:
RAILS_ENV=production
SECRET_KEY_BASE=your-rails-secret
You're done. Click "Deploy" on top.
To set up an SSH key, run this in your terminal:
ssh-keygen -t ed25519 -C "your description" -f ~/.ssh/example
Copy your private key form ~/.ssh/example
to Coolify's Keys & Tokens settings and copy your public key from ~/.ssh/example.pub
to the key settings page of the git platform you're using.